処理順序修正

This commit is contained in:
ろむねこ 2024-01-25 12:54:17 +09:00
parent 1dff7381af
commit 6cff3dd6b4
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

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