From 787b7af9964363c7088e67ffa84b7ae848b0a715 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 28 Feb 2017 22:13:33 +0100 Subject: [PATCH] use the copy/move source path as the initial path at Other Folder option --- .../com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 c3ec72601..92d40365b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt @@ -1,6 +1,5 @@ package com.simplemobiletools.gallery.dialogs -import android.os.Environment import android.support.v7.app.AlertDialog import android.support.v7.widget.RecyclerView import android.view.LayoutInflater @@ -44,9 +43,8 @@ class PickAlbumDialog(val activity: SimpleActivity, val sourcePath: String, val } fun showOtherFolder() { - val initialPath = Environment.getExternalStorageDirectory().toString() val showHidden = activity.config.showHiddenFolders - FilePickerDialog(activity, initialPath, false, showHidden, true) { + FilePickerDialog(activity, sourcePath, false, showHidden, true) { callback.invoke(it) } }