backgroundTasksRunning.postValue(cnt > 0);
}
public static void setCurrentProfile(@NonNull MobileLedgerProfile newProfile) {
+ MLDB.setOption(MLDB.OPT_PROFILE_UUID, newProfile.getUuid());
+ profile.setValue(newProfile);
+ }
+ public static void postCurrentProfile(@NonNull MobileLedgerProfile newProfile) {
MLDB.setOption(MLDB.OPT_PROFILE_UUID, newProfile.getUuid());
profile.postValue(newProfile);
}
MobileLedgerProfile startupProfile = getProfile(profileUUID);
if (startupProfile != null)
setCurrentProfile(startupProfile);
+ Logger.debug("profile", "initProfile() returning " + startupProfile);
return startupProfile;
}
String profileUUID = MLDB.getOption(MLDB.OPT_PROFILE_UUID, null);
MobileLedgerProfile startupProfile = Data.getProfile(profileUUID);
if (startupProfile != null)
- Data.setCurrentProfile(startupProfile);
+ Data.postCurrentProfile(startupProfile);
return null;
}
@Override