From 6cff3dd6b4466983733d2c305980aa6d82e9d9ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 25 Jan 2024 12:54:17 +0900 Subject: [PATCH] =?UTF-8?q?=E5=87=A6=E7=90=86=E9=A0=86=E5=BA=8F=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/component/common/LacertaSelectDirDialog.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialog.java b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialog.java index c1d82091..e3262051 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialog.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialog.java @@ -33,8 +33,6 @@ public class LacertaSelectDirDialog extends DialogFragment { RecyclerView recyclerView = view.findViewById(R.id.select_dir_recycler_view); - showRecyclerViewItem(null); // get root folder list - this.adapter = new SelectDirDialogItemAdapter((name, itemId) -> { Toast.makeText(getContext(), "Called:" + name, Toast.LENGTH_SHORT).show(); showRecyclerViewItem(itemId); @@ -43,9 +41,10 @@ public class LacertaSelectDirDialog extends DialogFragment { recyclerView.setAdapter(this.adapter); recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext())); - builder.setView(view); + showRecyclerViewItem(null); // get root folder list + builder.setTitle("Select Directory"); builder.setMessage("Please select a directory."); builder.setPositiveButton("OK", null);