From: Damyan Ivanov Date: Fri, 23 Apr 2021 20:24:02 +0000 (+0300) Subject: Data.profile doesn't need to be an inert MutableLiveData X-Git-Tag: v0.18.0~35 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=1ac1544e181834bdb9f606e0a19f66067144ee18;p=mobile-ledger.git Data.profile doesn't need to be an inert MutableLiveData the normal MutableLiveData doesn't fire if not given an initial value --- diff --git a/app/src/main/java/net/ktnx/mobileledger/model/Data.java b/app/src/main/java/net/ktnx/mobileledger/model/Data.java index c14bc3f1..1a3eaa94 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/Data.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/Data.java @@ -60,7 +60,7 @@ public final class Data { public static final MutableLiveData lastTransactionsUpdateText = new MutableLiveData<>(); public static final MutableLiveData lastAccountsUpdateText = new MutableLiveData<>(); - private static final MutableLiveData profile = new InertMutableLiveData<>(); + private static final MutableLiveData profile = new MutableLiveData<>(); private static final AtomicInteger backgroundTaskCount = new AtomicInteger(0); private static final Locker profilesLocker = new Locker(); private static NumberFormat numberFormatter;