rename PickAlbumDialog to PickDirectoryDialog
This commit is contained in:
parent
e05ef4a9f2
commit
866b8b77b4
|
@ -3,7 +3,7 @@ package com.simplemobiletools.gallery.activities
|
|||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||
import com.simplemobiletools.commons.extensions.toast
|
||||
import com.simplemobiletools.gallery.R
|
||||
import com.simplemobiletools.gallery.dialogs.PickAlbumDialog
|
||||
import com.simplemobiletools.gallery.dialogs.PickDirectoryDialog
|
||||
import java.io.File
|
||||
import java.util.*
|
||||
|
||||
|
@ -15,7 +15,7 @@ open class SimpleActivity : BaseSimpleActivity() {
|
|||
}
|
||||
|
||||
val source = if (files[0].isFile) files[0].parent else files[0].absolutePath
|
||||
PickAlbumDialog(this, source) {
|
||||
PickDirectoryDialog(this, source) {
|
||||
copyMoveFilesTo(files, source.trimEnd('/'), it, isCopyOperation, true, callback)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ import com.simplemobiletools.gallery.extensions.getCachedDirectories
|
|||
import com.simplemobiletools.gallery.models.Directory
|
||||
import kotlinx.android.synthetic.main.dialog_album_picker.view.*
|
||||
|
||||
class PickAlbumDialog(val activity: SimpleActivity, val sourcePath: String, val callback: (path: String) -> Unit) {
|
||||
class PickDirectoryDialog(val activity: SimpleActivity, val sourcePath: String, val callback: (path: String) -> Unit) {
|
||||
var dialog: AlertDialog
|
||||
var directoriesGrid: RecyclerView
|
||||
var shownDirectories: ArrayList<Directory> = ArrayList()
|
Loading…
Reference in New Issue