use of com.android.contacts.common.list.ContactListFilter in project packages_apps_Contacts by AOKP.
the class DefaultContactBrowseListFragment method updateFilterHeaderView.
private void updateFilterHeaderView() {
if (mAccountFilterHeader == null) {
// Before onCreateView -- just ignore it.
return;
}
final ContactListFilter filter = getFilter();
if (filter != null && !isSearchMode()) {
final boolean shouldShowHeader = AccountFilterUtil.updateAccountFilterTitleForPeople(mAccountFilterHeader, filter, false);
mAccountFilterHeader.setVisibility(shouldShowHeader ? View.VISIBLE : View.GONE);
} else {
mAccountFilterHeader.setVisibility(View.GONE);
}
}
Aggregations