mirror of https://github.com/m2049r/xmrwallet.git
fix watch only
This commit is contained in:
parent
0712efec78
commit
7b96baeca7
|
@ -234,7 +234,6 @@ public class GenerateReviewFragment extends Fragment {
|
||||||
String seed;
|
String seed;
|
||||||
String viewKey;
|
String viewKey;
|
||||||
String spendKey;
|
String spendKey;
|
||||||
boolean isWatchOnly;
|
|
||||||
Wallet.Status walletStatus;
|
Wallet.Status walletStatus;
|
||||||
|
|
||||||
boolean dialogOpened = false;
|
boolean dialogOpened = false;
|
||||||
|
@ -286,8 +285,7 @@ public class GenerateReviewFragment extends Fragment {
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException("Hardware backing not supported. At all!");
|
throw new IllegalStateException("Hardware backing not supported. At all!");
|
||||||
}
|
}
|
||||||
spendKey = isWatchOnly ? getActivity().getString(R.string.label_watchonly) : wallet.getSecretSpendKey();
|
spendKey = wallet.isWatchOnly() ? getActivity().getString(R.string.label_watchonly) : wallet.getSecretSpendKey();
|
||||||
isWatchOnly = wallet.isWatchOnly();
|
|
||||||
if (closeWallet) wallet.close();
|
if (closeWallet) wallet.close();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue