From 0efdb071cce6ba01c40841b5fbc695c24f0335ee Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 7 Jan 2017 16:08:15 +0100 Subject: [PATCH] allow creating new folders at Copy or Save as dialogs --- app/build.gradle | 2 +- .../com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt | 2 +- .../com/simplemobiletools/gallery/dialogs/SaveAsDialog.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 624352e24..cec013cc8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,7 +32,7 @@ android { } dependencies { - compile 'com.simplemobiletools:commons:2.2.0' + compile 'com.simplemobiletools:commons:2.2.1' compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0' compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1' compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt index 8bc09e677..6a825dee7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt @@ -40,7 +40,7 @@ class PickAlbumDialog(val activity: SimpleActivity, val callback: (path: String) fun showOtherFolder() { val initialPath = Environment.getExternalStorageDirectory().toString() val showHidden = Config.newInstance(activity).showHiddenFolders - FilePickerDialog(activity, initialPath, false, showHidden) { + FilePickerDialog(activity, initialPath, false, showHidden, true) { callback.invoke(it) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SaveAsDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SaveAsDialog.kt index 2ae3ae11e..52aa506c8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SaveAsDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/SaveAsDialog.kt @@ -29,7 +29,7 @@ class SaveAsDialog(val activity: SimpleActivity, val path: String, val callback: file_name.setText(name) file_path.setOnClickListener { - FilePickerDialog(activity, realPath, false, false) { + FilePickerDialog(activity, realPath, false, false, true) { file_path.text = activity.humanizePath(it) realPath = it }