From 4370ee4e8dc7ffd9af61ac734587cf2dc21c8a6c Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 27 Dec 2016 00:38:05 +0100 Subject: [PATCH] renaming filepicker dialog --- .../com/simplemobiletools/commons/dialogs/FilePickerDialog.kt | 4 ++-- .../layout/{directory_picker.xml => dialog_filepicker.xml} | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) rename commons/src/main/res/layout/{directory_picker.xml => dialog_filepicker.xml} (95%) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FilePickerDialog.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FilePickerDialog.kt index 97ca4a450..7a57d237c 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FilePickerDialog.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FilePickerDialog.kt @@ -19,7 +19,7 @@ import com.simplemobiletools.commons.extensions.setupDialogStuff import com.simplemobiletools.commons.models.FileDirItem import com.simplemobiletools.commons.views.Breadcrumbs import com.simplemobiletools.commons.views.RecyclerViewDivider -import kotlinx.android.synthetic.main.directory_picker.view.* +import kotlinx.android.synthetic.main.dialog_filepicker.view.* import java.io.File import java.util.* import kotlin.comparisons.compareBy @@ -53,7 +53,7 @@ class FilePickerDialog(val context: Context, if (!File(currPath).exists()) currPath = context.getInternalStoragePath() - mDialogView = LayoutInflater.from(context).inflate(R.layout.directory_picker, null) + mDialogView = LayoutInflater.from(context).inflate(R.layout.dialog_filepicker, null) mDialogView.directory_picker_breadcrumbs.setListener(this) updateItems() diff --git a/commons/src/main/res/layout/directory_picker.xml b/commons/src/main/res/layout/dialog_filepicker.xml similarity index 95% rename from commons/src/main/res/layout/directory_picker.xml rename to commons/src/main/res/layout/dialog_filepicker.xml index cf155b2ea..0e402444e 100644 --- a/commons/src/main/res/layout/directory_picker.xml +++ b/commons/src/main/res/layout/dialog_filepicker.xml @@ -17,6 +17,7 @@ android:id="@+id/directory_picker_list" android:layout_width="match_parent" android:layout_height="1000dp" + android:scrollbars="vertical" app:layoutManager="android.support.v7.widget.LinearLayoutManager"/>