From 7979c30fbec50954aa35d66f9e4558f4233824e3 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 10 Jun 2020 19:39:56 +0000 Subject: [PATCH] Data.profile becomes inert so that no change is triggered when there is none avoids some flicker when reloading the content --- 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 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<>(); -- 2.39.5