public static final MutableLiveData<Date> lastUpdateDate = new MutableLiveData<>(null);
public static final MutableLiveData<Integer> lastUpdateTransactionCount =
new MutableLiveData<>(0);
- public static final ObservableValue<String> lastUpdateText = new ObservableValue<>();
+ public static final MutableLiveData<Integer> lastUpdateAccountCount = new MutableLiveData<>(0);
+ public static final ObservableValue<String> lastTransactionsUpdateText =
+ new ObservableValue<>();
+ public static final ObservableValue<String> lastAccountsUpdateText = new ObservableValue<>();
private static final MutableLiveData<MobileLedgerProfile> profile =
new InertMutableLiveData<>();
private static final AtomicInteger backgroundTaskCount = new AtomicInteger(0);
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;
}