diff --git a/app/build.gradle b/app/build.gradle index 939b57bb..d74972e0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.m2049r.xmrwallet" minSdkVersion 21 targetSdkVersion 25 - versionCode 68 - versionName "1.3.8 'Satoshis Dream'" + versionCode 70 + versionName "1.3.10 'Satoshis Dream'" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { diff --git a/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java b/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java index cdefe01e..91ff7bd5 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java +++ b/app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java @@ -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();