fix watch only

This commit is contained in:
m2049r 2022-01-03 12:52:29 +01:00
parent 0712efec78
commit 7b96baeca7
No known key found for this signature in database
GPG Key ID: 4386E69AF260078D
1 changed files with 1 additions and 3 deletions

View File

@ -234,7 +234,6 @@ public class GenerateReviewFragment extends Fragment {
String seed;
String viewKey;
String spendKey;
boolean isWatchOnly;
Wallet.Status walletStatus;
boolean dialogOpened = false;
@ -286,8 +285,7 @@ public class GenerateReviewFragment extends Fragment {
default:
throw new IllegalStateException("Hardware backing not supported. At all!");
}
spendKey = isWatchOnly ? getActivity().getString(R.string.label_watchonly) : wallet.getSecretSpendKey();
isWatchOnly = wallet.isWatchOnly();
spendKey = wallet.isWatchOnly() ? getActivity().getString(R.string.label_watchonly) : wallet.getSecretSpendKey();
if (closeWallet) wallet.close();
return true;
}