new wallet password fix (#184)

* revert to old (in-place) wallet creation method

* recover with password
This commit is contained in:
m2049r
2018-01-18 00:14:07 +01:00
committed by GitHub
parent 7f47307307
commit d6eb82c457
23 changed files with 93 additions and 72 deletions
@@ -58,17 +58,6 @@ public class Helper {
static public int DISPLAY_DIGITS_INFO = 5;
static public File getNewWalletDir(Context context) {
File newWalletDir = context.getDir("new", Context.MODE_PRIVATE);
Timber.d("new wallet directory is %s", newWalletDir.getAbsolutePath());
if (!newWalletDir.exists() || !newWalletDir.isDirectory()) {
String msg = newWalletDir.getAbsolutePath() + " is not a directory!";
Timber.e(msg);
throw new IllegalStateException(msg);
}
return newWalletDir;
}
static public File getStorageRoot(Context context) {
if (!isExternalStorageWritable()) {
String msg = context.getString(R.string.message_strorage_not_writable);