From 683883ca0ea0e29555168aecffe763e6b9ef32bd Mon Sep 17 00:00:00 2001 From: hvarona Date: Wed, 14 Nov 2018 22:49:47 -0400 Subject: [PATCH] Fix account seed names --- .../crystalwallet/manager/BitsharesAccountManager.java | 5 +++++ 1 file changed, 5 insertions(+) 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 62ff8ec..b26b661 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/manager/BitsharesAccountManager.java +++ b/app/src/main/java/cy/agorise/crystalwallet/manager/BitsharesAccountManager.java @@ -198,6 +198,11 @@ public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetI info.setName(fetch.getName()); grapheneAccount.setName(fetch.getName()); db.grapheneAccountInfoDao().insertGrapheneAccountInfo(info); + AccountSeed seed = db.accountSeedDao().findById(grapheneAccount.getSeedId()); + if(seed.getName() == null || seed.getName().isEmpty()){ + seed.setName(grapheneAccount.getName()); + db.accountSeedDao().insertAccountSeed(seed); + } subscribeBitsharesAccount(grapheneAccount.getId(),grapheneAccount.getAccountId(),context); }