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"
|
applicationId "com.m2049r.xmrwallet"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
versionCode 68
|
versionCode 70
|
||||||
versionName "1.3.8 'Satoshis Dream'"
|
versionName "1.3.10 'Satoshis Dream'"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
|
|
|
@ -141,7 +141,7 @@ public class WalletActivity extends SecureActivity implements WalletFragment.Lis
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
Timber.d("onDestroy()");
|
Timber.d("onDestroy()");
|
||||||
if (!isSynced()) {
|
if ((mBoundService != null) && !isSynced() && (getWallet() != null)) {
|
||||||
saveWallet();
|
saveWallet();
|
||||||
}
|
}
|
||||||
stopWalletService();
|
stopWalletService();
|
||||||
|
|
Loading…
Reference in New Issue