From 7cb623aa42b72c76112310b4883ec50cbd91dea7 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 16 Apr 2019 20:46:25 +0300 Subject: [PATCH] force profile observer notification when current profile is saved to reflect possible changes in color/name/url --- .../ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java index 91780c71..39b639f5 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java @@ -167,7 +167,7 @@ public class ProfileDetailFragment extends Fragment implements HueRingDialog.Hue if (mProfile.getUuid().equals(Data.profile.get().getUuid())) { // dummy update to notify the observers of the possibly new name/URL - Data.profile.set(mProfile); + Data.profile.forceNotifyObservers(); } } else { -- 2.39.5