wownero
/
wownerujo
Archived
4
0
Fork 0

save on exit only with connected wallet (#186)

upstream
m2049r 6 years ago committed by GitHub
parent f0a3c05a9a
commit c9927edbd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();