mirror of https://github.com/m2049r/xmrwallet.git
save on exit only with connected wallet (#186)
This commit is contained in:
parent
f0a3c05a9a
commit
c9927edbd1
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue