From: Damyan Ivanov Date: Tue, 16 Apr 2019 17:46:25 +0000 (+0300) Subject: force profile observer notification when current profile is saved X-Git-Tag: v0.10.0~108 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=7cb623aa42b72c76112310b4883ec50cbd91dea7;p=mobile-ledger.git force profile observer notification when current profile is saved to reflect possible changes in color/name/url --- 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 {