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);