mirror of
https://codeberg.org/r4v3r23/mysu.git
synced 2024-09-20 03:16:18 +02:00
Minor bug fixes
This commit is contained in:
parent
976f9167c2
commit
84c740f320
@ -50,7 +50,7 @@ public class OnboardingFragment extends Fragment {
|
|||||||
File walletFile = new File(getActivity().getApplicationInfo().dataDir, Constants.WALLET_NAME);
|
File walletFile = new File(getActivity().getApplicationInfo().dataDir, Constants.WALLET_NAME);
|
||||||
Wallet wallet = null;
|
Wallet wallet = null;
|
||||||
if(walletSeed.isEmpty()) {
|
if(walletSeed.isEmpty()) {
|
||||||
wallet = WalletManager.getInstance().createWallet(walletFile, walletPassword, Constants.MNEMONIC_LANGUAGE, 0);
|
wallet = WalletManager.getInstance().createWallet(walletFile, walletPassword, Constants.MNEMONIC_LANGUAGE, -1);
|
||||||
} else {
|
} else {
|
||||||
if(!checkMnemonic(walletSeed)) {
|
if(!checkMnemonic(walletSeed)) {
|
||||||
Toast.makeText(getContext(), getString(R.string.invalid_mnemonic_code), Toast.LENGTH_SHORT).show();
|
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("Seed: " + wallet.getSeed("")+"\n\n");
|
||||||
stringBuilder.append("Private view-key: " + wallet.getSecretViewKey()+"\n\n");
|
stringBuilder.append("Private view-key: " + wallet.getSecretViewKey()+"\n\n");
|
||||||
stringBuilder.append("Restore height: " + wallet.getRestoreHeight() + "\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());
|
walletInfoTextView.setText(stringBuilder.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user