allow creating new folders at Copy or Save as dialogs

This commit is contained in:
tibbi 2017-01-07 16:08:15 +01:00
parent 92959d474c
commit 0efdb071cc
3 changed files with 3 additions and 3 deletions

View file

@ -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'

View file

@ -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)
}
}

View file

@ -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
}