From 23b488a8eb69c99d5337538cc17690d2b637b9be Mon Sep 17 00:00:00 2001 From: Diogenes Molinares Date: Thu, 18 Jun 2020 14:07:26 +0200 Subject: Add support for category renaming (#854) * rename category * changed CHANGELOG * IDE Refactor * Address review comments Signed-off-by: Harsh Shandilya * change Stack to List and fix bug when empty category name * create intermediate folders * little fixes and KDoc added * Reuse existing move code * change button Cancel => Skip * use canonicalPath to confirm destination inside repository * change error message * update KDoc * show different error to user Co-authored-by: Harsh Shandilya Co-authored-by: Harsh Shandilya Co-authored-by: Fabian Henneke Co-authored-by: Fabian Henneke --- .../res/layout/folder_creation_dialog_fragment.xml | 25 ---------------------- app/src/main/res/layout/folder_dialog_fragment.xml | 25 ++++++++++++++++++++++ app/src/main/res/menu/context_pass.xml | 5 +++++ app/src/main/res/values/strings.xml | 6 ++++++ 4 files changed, 36 insertions(+), 25 deletions(-) delete mode 100644 app/src/main/res/layout/folder_creation_dialog_fragment.xml create mode 100644 app/src/main/res/layout/folder_dialog_fragment.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/folder_creation_dialog_fragment.xml b/app/src/main/res/layout/folder_creation_dialog_fragment.xml deleted file mode 100644 index bc078e64..00000000 --- a/app/src/main/res/layout/folder_creation_dialog_fragment.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - diff --git a/app/src/main/res/layout/folder_dialog_fragment.xml b/app/src/main/res/layout/folder_dialog_fragment.xml new file mode 100644 index 00000000..bc078e64 --- /dev/null +++ b/app/src/main/res/layout/folder_dialog_fragment.xml @@ -0,0 +1,25 @@ + + + + + + + + + + diff --git a/app/src/main/res/menu/context_pass.xml b/app/src/main/res/menu/context_pass.xml index 41a1f705..9c76fca8 100644 --- a/app/src/main/res/menu/context_pass.xml +++ b/app/src/main/res/menu/context_pass.xml @@ -20,4 +20,9 @@ android:title="@string/delete" app:showAsAction="ifRoom" /> + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b65d84f2..58126392 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -222,6 +222,7 @@ Go to Settings Go back Cancel + Skip Synchronize repository Pull from remote Push to remote @@ -323,6 +324,11 @@ Show hidden folders Include hidden directories in the password list Create folder + Rename folder + Category name can\'t be empty + Category name already exists + Destination must be within the repository + Enter destination for %1$s Create Open search on start Open search bar when app is launched -- cgit v1.2.3