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