Skip to content

Commit

Permalink
fix watch only
Browse files Browse the repository at this point in the history
  • Loading branch information
m2049r committed Jan 3, 2022
1 parent 0712efe commit 7b96bae
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ private class AsyncShow extends AsyncTask<String, Void, Boolean> {
String seed;
String viewKey;
String spendKey;
boolean isWatchOnly;
Wallet.Status walletStatus;

boolean dialogOpened = false;
Expand Down Expand Up @@ -286,8 +285,7 @@ protected Boolean doInBackground(String... params) {
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;
}
Expand Down

0 comments on commit 7b96bae

Please sign in to comment.