From 84c740f32039550aec36a7a567a5807e945d3bb7 Mon Sep 17 00:00:00 2001 From: pokkst Date: Wed, 7 Sep 2022 23:33:03 -0500 Subject: [PATCH] Minor bug fixes --- .../xmrwallet/fragment/onboarding/OnboardingFragment.java | 2 +- .../m2049r/xmrwallet/fragment/settings/SettingsFragment.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/m2049r/xmrwallet/fragment/onboarding/OnboardingFragment.java b/app/src/main/java/com/m2049r/xmrwallet/fragment/onboarding/OnboardingFragment.java index a395565..da67f07 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/fragment/onboarding/OnboardingFragment.java +++ b/app/src/main/java/com/m2049r/xmrwallet/fragment/onboarding/OnboardingFragment.java @@ -50,7 +50,7 @@ public class OnboardingFragment extends Fragment { File walletFile = new File(getActivity().getApplicationInfo().dataDir, Constants.WALLET_NAME); Wallet wallet = null; if(walletSeed.isEmpty()) { - wallet = WalletManager.getInstance().createWallet(walletFile, walletPassword, Constants.MNEMONIC_LANGUAGE, 0); + wallet = WalletManager.getInstance().createWallet(walletFile, walletPassword, Constants.MNEMONIC_LANGUAGE, -1); } else { if(!checkMnemonic(walletSeed)) { Toast.makeText(getContext(), getString(R.string.invalid_mnemonic_code), Toast.LENGTH_SHORT).show(); diff --git a/app/src/main/java/com/m2049r/xmrwallet/fragment/settings/SettingsFragment.java b/app/src/main/java/com/m2049r/xmrwallet/fragment/settings/SettingsFragment.java index c18adfa..66148f4 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/fragment/settings/SettingsFragment.java +++ b/app/src/main/java/com/m2049r/xmrwallet/fragment/settings/SettingsFragment.java @@ -35,6 +35,8 @@ public class SettingsFragment extends Fragment { stringBuilder.append("Seed: " + wallet.getSeed("")+"\n\n"); stringBuilder.append("Private view-key: " + wallet.getSecretViewKey()+"\n\n"); stringBuilder.append("Restore height: " + wallet.getRestoreHeight() + "\n\n"); + stringBuilder.append("Wallet height: " + wallet.getBlockChainHeight() + "\n\n"); + stringBuilder.append("Daemon height: " + wallet.getDaemonBlockChainHeight() + "\n\n"); walletInfoTextView.setText(stringBuilder.toString()); } } \ No newline at end of file