this is used in places that need the change now, not at some later point
for example, on profile change, which triggers activity recreation/theme
change
public static void setCurrentProfile(MobileLedgerProfile newProfile) {
MLDB.setOption(MLDB.OPT_PROFILE_UUID, (newProfile == null) ? null : newProfile.getUuid());
stopTransactionsRetrieval();
- profile.postValue(newProfile);
+ profile.setValue(newProfile);
}
public static int getProfileIndex(MobileLedgerProfile profile) {
try (LockHolder ignored = profilesLocker.lockForReading()) {