Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a46c1268 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Fix NPE introduced in I94687ad1

Bug 5076892

Change-Id: If6af5ad63188c3c36e7ffacb4b7dff65c11a6207
parent fa12fdc0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -102,6 +102,9 @@ public class DefaultContactBrowseListFragment extends ContactBrowseListFragment

    private void updateFilterHeaderView() {
        ContactListFilter filter = getFilter();
        if (mAccountFilterHeaderView == null) {
            return; // Before onCreateView -- just ignore it.
        }
        if (filter != null && filter.filterType != ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS &&
                !isSearchMode() && filter.filterType != ContactListFilter.FILTER_TYPE_CUSTOM) {
            mAccountFilterHeaderView.setText(getContext().getString(