mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
処理順序修正
This commit is contained in:
parent
1dff7381af
commit
6cff3dd6b4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user