]> git.ktnx.net Git - mobile-ledger.git/commitdiff
stop any running back-end data retrieval when the profile is changed
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 3 May 2019 15:16:09 +0000 (18:16 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 3 May 2019 15:16:09 +0000 (18:16 +0300)
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) {