mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
allow creating new folders at Copy or Save as dialogs
This commit is contained in:
parent
92959d474c
commit
0efdb071cc
3 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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.davemorrissey.labs:subsampling-scale-image-view:3.6.0'
|
||||||
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
|
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
|
||||||
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
||||||
|
|
|
@ -40,7 +40,7 @@ class PickAlbumDialog(val activity: SimpleActivity, val callback: (path: String)
|
||||||
fun showOtherFolder() {
|
fun showOtherFolder() {
|
||||||
val initialPath = Environment.getExternalStorageDirectory().toString()
|
val initialPath = Environment.getExternalStorageDirectory().toString()
|
||||||
val showHidden = Config.newInstance(activity).showHiddenFolders
|
val showHidden = Config.newInstance(activity).showHiddenFolders
|
||||||
FilePickerDialog(activity, initialPath, false, showHidden) {
|
FilePickerDialog(activity, initialPath, false, showHidden, true) {
|
||||||
callback.invoke(it)
|
callback.invoke(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ class SaveAsDialog(val activity: SimpleActivity, val path: String, val callback:
|
||||||
|
|
||||||
file_name.setText(name)
|
file_name.setText(name)
|
||||||
file_path.setOnClickListener {
|
file_path.setOnClickListener {
|
||||||
FilePickerDialog(activity, realPath, false, false) {
|
FilePickerDialog(activity, realPath, false, false, true) {
|
||||||
file_path.text = activity.humanizePath(it)
|
file_path.text = activity.humanizePath(it)
|
||||||
realPath = it
|
realPath = it
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue