summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2f1d6e0)
to reproduce, set the background process limit in the developer options
to "1"
backgroundTasksRunning.postValue(cnt > 0);
}
public static void setCurrentProfile(@NonNull MobileLedgerProfile newProfile) {
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);
}
MLDB.setOption(MLDB.OPT_PROFILE_UUID, newProfile.getUuid());
profile.postValue(newProfile);
}
MobileLedgerProfile startupProfile = getProfile(profileUUID);
if (startupProfile != null)
setCurrentProfile(startupProfile);
MobileLedgerProfile startupProfile = getProfile(profileUUID);
if (startupProfile != null)
setCurrentProfile(startupProfile);
+ Logger.debug("profile", "initProfile() returning " + startupProfile);
String profileUUID = MLDB.getOption(MLDB.OPT_PROFILE_UUID, null);
MobileLedgerProfile startupProfile = Data.getProfile(profileUUID);
if (startupProfile != null)
String profileUUID = MLDB.getOption(MLDB.OPT_PROFILE_UUID, null);
MobileLedgerProfile startupProfile = Data.getProfile(profileUUID);
if (startupProfile != null)
- Data.setCurrentProfile(startupProfile);
+ Data.postCurrentProfile(startupProfile);