]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/model/Data.java
stop any running back-end data retrieval when the profile is changed
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / model / Data.java
index 64804aeb3426dd93c43a4dfc1558f8f492759cfe..cc35638e88770802a830945d03bb412e397847ff 100644 (file)
@@ -71,6 +71,7 @@ public final class Data {
     }
     public static void setCurrentProfile(MobileLedgerProfile newProfile) {
         MLDB.setOption(MLDB.OPT_PROFILE_UUID, newProfile.getUuid());
+        stopTransactionsRetrieval();
         profile.postValue(newProfile);
     }
     public static int getProfileIndex(MobileLedgerProfile profile) {