Skip to content

Commit

Permalink
Set enc type to unencrypted after restore
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacia committed Mar 18, 2019
1 parent 5427797 commit 6140ad7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public void onClick(DialogInterface dialog, int which) {
Settings settings = Settings.getInstance();
settings.setMnemonic(mnemonic);
settings.setWalletInitialized(false);
settings.setEncryptionType(EncryptionType.UNENCRYPTED);

deleteRecursive(new File(getDataDir().getPath()));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void save(Context context) throws Exception {
certOutputSgtream.write(this.cert.getBytes());
certOutputSgtream.close();
}

FileOutputStream outputStream = context.openFileOutput(this.CONFIG_FILE_NAME, Context.MODE_PRIVATE);
outputStream.write(this.getConfigData().getBytes());
outputStream.close();
Expand Down
Binary file modified bchwallet/bchwallet.aar
Binary file not shown.

0 comments on commit 6140ad7

Please sign in to comment.