Commit fbd6f307 authored by Richard Knoll's avatar Richard Knoll Committed by Commit Bot

Fix contact picker list when switching to search.

We need to notify the recycler view that our list content has changed
when switching between search / non-search as the top item is the
(hidden) select all button if we're in non-search mode.

Bug: 985715,985711
Change-Id: Id1d8d18f8b71aea05f5ca1fb634ea54323ef6cfb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724085Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Commit-Queue: Richard Knoll <knollr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681862}
parent 23403e5a
...@@ -132,6 +132,7 @@ public class PickerAdapter extends Adapter<RecyclerView.ViewHolder> ...@@ -132,6 +132,7 @@ public class PickerAdapter extends Adapter<RecyclerView.ViewHolder>
*/ */
public void setSearchMode(boolean searchMode) { public void setSearchMode(boolean searchMode) {
mSearchMode = searchMode; mSearchMode = searchMode;
notifyDataSetChanged();
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment