diff --git a/app/src/main/java/net/mynero/wallet/service/MoneroHandlerThread.java b/app/src/main/java/net/mynero/wallet/service/MoneroHandlerThread.java index 00242ea..9969259 100644 --- a/app/src/main/java/net/mynero/wallet/service/MoneroHandlerThread.java +++ b/app/src/main/java/net/mynero/wallet/service/MoneroHandlerThread.java @@ -92,13 +92,13 @@ public class MoneroHandlerThread extends Thread implements WalletListener { @Override public void newBlock(long height) { - refresh(); + refresh(false); BlockchainService.getInstance().setDaemonHeight(wallet.isSynchronized() ? height : 0); } @Override public void updated() { - refresh(); + refresh(false); } @Override @@ -115,15 +115,17 @@ public class MoneroHandlerThread extends Thread implements WalletListener { BlockchainService.getInstance().setDaemonHeight(wallet.getDaemonBlockChainHeight()); wallet.setSynchronized(); wallet.store(); - refresh(); + refresh(true); } BlockchainService.getInstance().setConnectionStatus(status); } - private void refresh() { + private void refresh(boolean refreshCoins) { wallet.refreshHistory(); - wallet.refreshCoins(); + if(refreshCoins) { + wallet.refreshCoins(); + } listener.onRefresh(); }