From 53cf2ef25be21c92b6b40b074da0454728a66c8a Mon Sep 17 00:00:00 2001 From: Javier Varona Date: Sun, 23 Sep 2018 20:01:45 -0400 Subject: [PATCH] - Fixing transaction duplication when importing an account. --- .../crystalwallet/manager/BitsharesAccountManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/manager/BitsharesAccountManager.java b/app/src/main/java/cy/agorise/crystalwallet/manager/BitsharesAccountManager.java index a3871fb..0789568 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/manager/BitsharesAccountManager.java +++ b/app/src/main/java/cy/agorise/crystalwallet/manager/BitsharesAccountManager.java @@ -2,6 +2,7 @@ package cy.agorise.crystalwallet.manager; import android.annotation.SuppressLint; import android.content.Context; +import android.util.Log; import com.google.common.primitives.UnsignedLong; @@ -129,7 +130,7 @@ public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetI long[] idAccount = db.cryptoNetAccountDao().insertCryptoNetAccount(grapheneAccount); grapheneAccount.setId(idAccount[0]); db.grapheneAccountInfoDao().insertGrapheneAccountInfo(new GrapheneAccountInfo(grapheneAccount)); - subscribeBitsharesAccount(grapheneAccount.getId(),grapheneAccount.getAccountId(),context); + //subscribeBitsharesAccount(grapheneAccount.getId(),grapheneAccount.getAccountId(),context); } @Override @@ -147,7 +148,7 @@ public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetI CrystalDatabase db = CrystalDatabase.getAppDatabase(context); db.cryptoNetAccountDao().insertCryptoNetAccount(grapheneAccount); db.grapheneAccountInfoDao().insertGrapheneAccountInfo(new GrapheneAccountInfo(grapheneAccount)); - subscribeBitsharesAccount(grapheneAccount.getId(),grapheneAccount.getAccountId(),context); + //subscribeBitsharesAccount(grapheneAccount.getId(),grapheneAccount.getAccountId(),context); } @Override @@ -159,7 +160,7 @@ public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetI CrystalDatabase db = CrystalDatabase.getAppDatabase(context); db.cryptoNetAccountDao().insertCryptoNetAccount(grapheneAccount); db.grapheneAccountInfoDao().insertGrapheneAccountInfo(new GrapheneAccountInfo(grapheneAccount)); - subscribeBitsharesAccount(grapheneAccount.getId(), grapheneAccount.getAccountId(), context); + //subscribeBitsharesAccount(grapheneAccount.getId(), grapheneAccount.getAccountId(), context); } } }