mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-25 17:02:28 +00:00
Minor bug fixes
This commit is contained in:
parent
976f9167c2
commit
84c740f320
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue