Minor bug fixes

This commit is contained in:
pokkst 2022-09-07 23:33:03 -05:00
parent 976f9167c2
commit 84c740f320
No known key found for this signature in database
GPG Key ID: 90C2ED85E67A50FF
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -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());
}
}