]> git.ktnx.net Git - mobile-ledger.git/commitdiff
Data.profile doesn't need to be an inert MutableLiveData
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 23 Apr 2021 20:24:02 +0000 (23:24 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 25 Apr 2021 17:07:58 +0000 (17:07 +0000)
the normal MutableLiveData doesn't fire if not given an initial value

app/src/main/java/net/ktnx/mobileledger/model/Data.java

index c14bc3f15c3bdd122aee8cbb45ec066b7015aa3d..1a3eaa94d24c5915165aed3355c0be9f4266e95b 100644 (file)
@@ -60,7 +60,7 @@ public final class Data {
     public static final MutableLiveData<String> lastTransactionsUpdateText =
             new MutableLiveData<>();
     public static final MutableLiveData<String> lastAccountsUpdateText = new MutableLiveData<>();
-    private static final MutableLiveData<Profile> profile = new InertMutableLiveData<>();
+    private static final MutableLiveData<Profile> profile = new MutableLiveData<>();
     private static final AtomicInteger backgroundTaskCount = new AtomicInteger(0);
     private static final Locker profilesLocker = new Locker();
     private static NumberFormat numberFormatter;