From 3f7e7b5bc6db9a1720c061c3ed54dfe8478c91d5 Mon Sep 17 00:00:00 2001 From: henry Date: Mon, 15 Jan 2018 23:31:57 -0400 Subject: [PATCH] Change the graphene manager to save new created accounts --- .../agorise/crystalwallet/manager/BitsharesAccountManager.java | 3 +++ build.gradle | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 eec7f1e..f374de8 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/manager/BitsharesAccountManager.java +++ b/app/src/main/java/cy/agorise/crystalwallet/manager/BitsharesAccountManager.java @@ -66,6 +66,9 @@ public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetI if(created) { GrapheneAccount fetch = this.getAccountInfoByName(grapheneAccount.getName()); + fetch.setSeedId(grapheneAccount.getSeedId()); + fetch.setCryptoNet(grapheneAccount.getCryptoNet()); + fetch.setAccountIndex(grapheneAccount.getAccountIndex()); CrystalDatabase db = CrystalDatabase.getAppDatabase(context); long idAccount = db.cryptoNetAccountDao().insertCryptoNetAccount(fetch)[0]; diff --git a/build.gradle b/build.gradle index f0981d9..f485cd6 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.0' + classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files