save on exit only with connected wallet (#186)

This commit is contained in:
m2049r
2018-01-18 17:23:35 +01:00
committed by GitHub
parent f0a3c05a9a
commit c9927edbd1
2 changed files with 3 additions and 3 deletions
@@ -141,7 +141,7 @@ public class WalletActivity extends SecureActivity implements WalletFragment.Lis
@Override
protected void onDestroy() {
Timber.d("onDestroy()");
if (!isSynced()) {
if ((mBoundService != null) && !isSynced() && (getWallet() != null)) {
saveWallet();
}
stopWalletService();