Restore the "Contacts to display" custom filter (2/3)
* Revert "Remove AccountFilterActivity and its usage (ContactsCommon)"
This reverts commit cc8f7406b3c34587941dac11ad24966ab3f8e417.
* ContactListFilterView and CustomContatListFilterActivity are
unchanged from their state before when they were removed.
* AccountFilterActitivy has been altered to only show
FILTER_TYPE_ALL_ACCOUNTS and FILTER_TYPE_CUSTOM filter types
(instead of using AccountFilterUtil.FilterLoader) and to
set which one is checked based on the persisted state and not
the extra passed to the Activity. So the KEY_EXTRA_CURRENT_FILTER
has been removed.
* AccountFitlerUtil#updateAccountFilterTitleForPeople
and #updateAccountFitlerTitleForPhone methods were not restored
since the list header titles are now set elsewhere.
* Finally, we added a new "Contacts to display" item to Settings
after "Name format" and make a call to
AccountFilterUtil.handleAccountFilterResult when the
AccountFilterActivity returns to persist either the
FILTER_TYPE_ALL_ACCOUNTS or FILTER_TYPE_CUSTOM filter type.
Bug 29185471
Change-Id: I5f199f47f9d0098065790d4d8483d786ad9fcb5b
21 files changed