]> git.ktnx.net Git - mobile-ledger.git/commit
fix spurious fetch of remote data
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 16 Sep 2020 15:13:47 +0000 (18:13 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 16 Sep 2020 15:13:47 +0000 (18:13 +0300)
commit8a7234e211e68af2e54f082606c8bb4fe5924f0c
treea3d22c1dd673a213c82e06ee466739ce11c67e87
parent20c03b7a5eb152d42fbbe9ecbaae27530563b398
fix spurious fetch of remote data

the lastUpdate observer was triggered once before the value is set
so move the decision whether to fetch out of the observer
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java