From 1ac1544e181834bdb9f606e0a19f66067144ee18 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 23 Apr 2021 23:24:02 +0300 Subject: [PATCH] Data.profile doesn't need to be an inert MutableLiveData the normal MutableLiveData doesn't fire if not given an initial value --- app/src/main/java/net/ktnx/mobileledger/model/Data.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5