mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +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);
|
RecyclerView recyclerView = view.findViewById(R.id.select_dir_recycler_view);
|
||||||
|
|
||||||
showRecyclerViewItem(null); // get root folder list
|
|
||||||
|
|
||||||
this.adapter = new SelectDirDialogItemAdapter((name, itemId) -> {
|
this.adapter = new SelectDirDialogItemAdapter((name, itemId) -> {
|
||||||
Toast.makeText(getContext(), "Called:" + name, Toast.LENGTH_SHORT).show();
|
Toast.makeText(getContext(), "Called:" + name, Toast.LENGTH_SHORT).show();
|
||||||
showRecyclerViewItem(itemId);
|
showRecyclerViewItem(itemId);
|
||||||
|
@ -43,9 +41,10 @@ public class LacertaSelectDirDialog extends DialogFragment {
|
||||||
|
|
||||||
recyclerView.setAdapter(this.adapter);
|
recyclerView.setAdapter(this.adapter);
|
||||||
recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext()));
|
recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext()));
|
||||||
|
|
||||||
builder.setView(view);
|
builder.setView(view);
|
||||||
|
|
||||||
|
showRecyclerViewItem(null); // get root folder list
|
||||||
|
|
||||||
builder.setTitle("Select Directory");
|
builder.setTitle("Select Directory");
|
||||||
builder.setMessage("Please select a directory.");
|
builder.setMessage("Please select a directory.");
|
||||||
builder.setPositiveButton("OK", null);
|
builder.setPositiveButton("OK", null);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user