From: Damyan Ivanov Date: Wed, 10 Jun 2020 19:39:56 +0000 (+0000) Subject: Data.profile becomes inert X-Git-Tag: v0.14.0~43 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=7979c30fbec50954aa35d66f9e4558f4233824e3 Data.profile becomes inert so that no change is triggered when there is none avoids some flicker when reloading the content --- 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 0bdbb1a2..8b4def95 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/Data.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/Data.java @@ -48,7 +48,7 @@ public final class Data { public static ObservableList accounts = new ObservableList<>(new ArrayList<>()); public static MutableLiveData backgroundTasksRunning = new MutableLiveData<>(false); public static MutableLiveData lastUpdateDate = new MutableLiveData<>(); - public static MutableLiveData profile = new MutableLiveData<>(); + public static MutableLiveData profile = new InertMutableLiveData<>(); public static MutableLiveData> profiles = new MutableLiveData<>(null); public static MutableLiveData accountFilter = new MutableLiveData<>();