From 866b8b77b4193ab5875457de5f6a506b715c6eca Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 6 Jun 2017 20:25:31 +0200 Subject: [PATCH] rename PickAlbumDialog to PickDirectoryDialog --- .../simplemobiletools/gallery/activities/SimpleActivity.kt | 4 ++-- .../dialogs/{PickAlbumDialog.kt => PickDirectoryDialog.kt} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/{PickAlbumDialog.kt => PickDirectoryDialog.kt} (95%) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SimpleActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SimpleActivity.kt index 86ca2eada..6cfd6eb38 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SimpleActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SimpleActivity.kt @@ -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) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickDirectoryDialog.kt similarity index 95% rename from app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt rename to app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickDirectoryDialog.kt index 9318120bb..9c68c310f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickDirectoryDialog.kt @@ -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 = ArrayList()