From 542c04b9080deaf4e466e0260944959f6415c189 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 27 Jan 2024 16:16:52 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0=E3=81=AB?= =?UTF-8?q?=E3=82=BF=E3=83=83=E3=83=81=E3=83=AA=E3=82=B9=E3=83=8A=E3=83=BC?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/component/common/LacertaSelectRevDialog.java | 5 ++--- .../lacerta/component/common/SelectRevDialogItemAdapter.java | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectRevDialog.java b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectRevDialog.java index 2bc571a0..208bfa28 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectRevDialog.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectRevDialog.java @@ -78,11 +78,10 @@ public class LacertaSelectRevDialog extends DialogFragment { SelectRevDialogItemAdapter adapter = new SelectRevDialogItemAdapter(revId -> { if (listener != null) { listener.onItemSelected(revId); + dismiss(); } - dismiss(); }); - - recyclerView.setAdapter(adapter); + recyclerView.setAdapter(adapter); recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); builder.setView(view); diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/SelectRevDialogItemAdapter.java b/component/common/src/main/java/one/nem/lacerta/component/common/SelectRevDialogItemAdapter.java index 47991374..6b26d4fc 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/SelectRevDialogItemAdapter.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/SelectRevDialogItemAdapter.java @@ -41,6 +41,8 @@ public class SelectRevDialogItemAdapter extends RecyclerView.Adapter listener.onItemSelected(rev.getId())); } @Override