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);
+ }
public static int getProfileIndex(MobileLedgerProfile profile) {
try (LockHolder ignored = profilesLocker.lockForReading()) {
List<MobileLedgerProfile> prList = profiles.getValue();
MobileLedgerProfile startupProfile = getProfile(profileUUID);
if (startupProfile != null)
setCurrentProfile(startupProfile);
+ Logger.debug("profile", "initProfile() returning " + startupProfile);
return startupProfile;
}