Switch search to use the existing header.

Probably best to not try out any possible new design changes just yet.
Let's stick with what we have.
This commit is contained in:
Greyson Parrelli
2018-05-23 11:06:07 -04:00
parent 6d56447de2
commit 92a64f59a4
3 changed files with 2 additions and 28 deletions

View File

@@ -97,7 +97,7 @@ class SearchListAdapter extends RecyclerView.Adapter<SearchListAdapter.Search
@Override
public HeaderViewHolder onCreateHeaderViewHolder(ViewGroup parent) {
return new HeaderViewHolder(LayoutInflater.from(parent.getContext())
.inflate(R.layout.header_search_result, parent, false));
.inflate(R.layout.contact_selection_list_divider, parent, false));
}
@Override
@@ -199,7 +199,7 @@ class SearchListAdapter extends RecyclerView.Adapter<SearchListAdapter.Search
public HeaderViewHolder(View itemView) {
super(itemView);
titleView = (TextView) itemView;
titleView = itemView.findViewById(R.id.label);
}
public void bind(int headerType) {