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 64804ae..cc35638 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) {