From 7b96baeca7f216c943ad5d376e6838f9679e74b0 Mon Sep 17 00:00:00 2001 From: m2049r Date: Mon, 3 Jan 2022 12:52:29 +0100 Subject: [PATCH] fix watch only --- .../java/com/m2049r/xmrwallet/GenerateReviewFragment.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/m2049r/xmrwallet/GenerateReviewFragment.java b/app/src/main/java/com/m2049r/xmrwallet/GenerateReviewFragment.java index 72ab77f6..368317cb 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/GenerateReviewFragment.java +++ b/app/src/main/java/com/m2049r/xmrwallet/GenerateReviewFragment.java @@ -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; }