]> git.ktnx.net Git - mobile-ledger.git/commitdiff
force profile observer notification when current profile is saved
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Apr 2019 17:46:25 +0000 (20:46 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Apr 2019 17:46:25 +0000 (20:46 +0300)
to reflect possible changes in color/name/url

app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java

index 91780c71b4dbec9a29d1e0f115a45c1c117e3053..39b639f5ff361b9b151c287b8aae832eaabf4549 100644 (file)
@@ -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 {