Skip to content

Commit

Permalink
notifyDataSetChanged on list data changes
Browse files Browse the repository at this point in the history
  • Loading branch information
utsavdotpro committed Jun 28, 2021
1 parent b5fbb39 commit 7b12d20
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ public SearchableListDialog(@NonNull Context context, @NonNull SearchableListAda
listen();
}

@Override
public void show() {
super.show();
populateList();
}

public void dismiss() {
binding.metSearch.setText("");
dismiss(false);
Expand Down Expand Up @@ -109,6 +103,7 @@ private void populateList() {
}

adapter.setItems(filteredItems);
adapter.notifyDataSetChanged();
}

public void setOnItemSelectedListener(OnItemSelectedListener<T> onItemSelectedListener) {
Expand Down

0 comments on commit 7b12d20

Please sign in to comment.