summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ba1246d)
was broken after migration of the profile list to LiveData
final ArrayList<MobileLedgerProfile> profiles = Data.profiles.getValue();
if (profiles == null) throw new AssertionError();
profiles.set(index, newProfile);
final ArrayList<MobileLedgerProfile> profiles = Data.profiles.getValue();
if (profiles == null) throw new AssertionError();
profiles.set(index, newProfile);
+
+ ProfilesRecyclerViewAdapter prva = ProfilesRecyclerViewAdapter.getInstance();
+ if (prva != null) prva.notifyItemChanged(index);
+
if (mProfile.equals(Data.profile.getValue())) Data.profile.setValue(newProfile);
}
@Override
if (mProfile.equals(Data.profile.getValue())) Data.profile.setValue(newProfile);
}
@Override