Search in sources :

Example 6 with ContactListFilter

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);
    }
}
Also used : ContactListFilter(com.android.contacts.common.list.ContactListFilter)

Aggregations

ContactListFilter (com.android.contacts.common.list.ContactListFilter)6 Uri (android.net.Uri)4 Intent (android.content.Intent)2 Builder (android.net.Uri.Builder)2 SpannableString (android.text.SpannableString)2