diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index bfdca11..4754930 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -60,9 +60,6 @@ - filename.endsWith(".keys")); + if (wallets == null) return; for (File wallet : wallets) { final String walletName = wallet.getName().substring(0, wallet.getName().length() - ".keys".length()); if (addressPrefix.indexOf(getAddress(walletName).charAt(0)) < 0) { diff --git a/app/src/main/java/com/m2049r/xmrwallet/util/Notice.java b/app/src/main/java/com/m2049r/xmrwallet/util/Notice.java index 8e5c4df..673e37a 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/util/Notice.java +++ b/app/src/main/java/com/m2049r/xmrwallet/util/Notice.java @@ -30,6 +30,7 @@ import androidx.fragment.app.FragmentManager; import com.m2049r.xmrwallet.R; import com.m2049r.xmrwallet.dialog.HelpFragment; +import com.m2049r.xmrwallet.ledger.Ledger; import java.util.ArrayList; import java.util.List; @@ -52,12 +53,13 @@ public class Notice { R.string.help_xmrto, 1) ); - notices.add( - new Notice(NOTICE_SHOW_LEDGER, - R.string.info_ledger_enabled, - R.string.help_create_ledger, - 1) - ); + if (Ledger.ENABLED) + notices.add( + new Notice(NOTICE_SHOW_LEDGER, + R.string.info_ledger_enabled, + R.string.help_create_ledger, + 1) + ); } }