From 9f8f9d588c00139e42470b491464457623c8b717 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 26 Jul 2020 17:08:42 +0530 Subject: [PATCH] Allow creating nested directories Signed-off-by: Harsh Shandilya --- CHANGELOG.md | 1 + .../zeapo/pwdstore/ui/dialogs/FolderCreationDialogFragment.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32802e4aa..ddd1521b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. ### Fixed - Properly handle cases where files contain only TOTP secrets and no password +- Allow creating nested directories directly ## [1.10.1] - 2020-07-23 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 5776187b1..25a935bb0 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(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() }