]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/model/Data.java
Data.setCurrentProfile: use setValue() instead of postValue()
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / model / Data.java
index 0539c136706e54a2bbf2640b2ca51442fdbc068e..0bdbb1a229faa104af945fdab812ba4ad078ec45 100644 (file)
@@ -76,7 +76,7 @@ public final class Data {
     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()) {