diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-07-26 17:08:42 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-07-26 17:08:42 +0530 |
commit | 9f8f9d588c00139e42470b491464457623c8b717 (patch) | |
tree | 89ae816c12386e6dcce5c6bd660ceb666be454a6 /app/src/main/java/com | |
parent | 0cc3aac9106893948779f0fa1a41f926c5e37507 (diff) |
Allow creating nested directories
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/ui/dialogs/FolderCreationDialogFragment.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/ui/dialogs/FolderCreationDialogFragment.kt b/app/src/main/java/com/zeapo/pwdstore/ui/dialogs/FolderCreationDialogFragment.kt index 5776187b..25a935bb 100644 --- a/app/src/main/java/com/zeapo/pwdstore/ui/dialogs/FolderCreationDialogFragment.kt +++ b/app/src/main/java/com/zeapo/pwdstore/ui/dialogs/FolderCreationDialogFragment.kt @@ -37,7 +37,7 @@ class FolderCreationDialogFragment : DialogFragment() { val materialTextView = dialog.findViewById<TextInputEditText>(R.id.folder_name_text) val folderName = materialTextView.text.toString() val newFolder = File("$currentDir/$folderName") - newFolder.mkdir() + newFolder.mkdirs() (requireActivity() as PasswordStore).refreshPasswordList(newFolder) dismiss() } |