Move ContactListFilterListener back to PeopleActivity
- It's not a good idea to put the listener in a fragment since
we need to do a lot in PeopleActivity when filter changes, and
filter may change when fragment is not added (and this is when
b/31838582 happens).
- Change the style of ProviderStatusListener.
Bug: 31838582
Bug: 31829161
Bug: 30944495
Test: manual
- follow steps to repro in the first 2 bugs
- navigate between fragments
- Add a contact to an account w/o contact and remove the only contact
from it, to make sure ProviderStatusListener works.
Change-Id: Ie45065152db67bf2c7c7873a72038c6f1145d678
diff --git a/src/com/android/contacts/ContactsDrawerActivity.java b/src/com/android/contacts/ContactsDrawerActivity.java
index 19d1466..b810eec 100644
--- a/src/com/android/contacts/ContactsDrawerActivity.java
+++ b/src/com/android/contacts/ContactsDrawerActivity.java
@@ -583,7 +583,7 @@
setTitle(getString(R.string.contactsList));
}
- protected void resetFilter() {
+ private void resetFilter() {
final Intent intent = new Intent();
final ContactListFilter filter = AccountFilterUtil.createContactsFilter(this);
intent.putExtra(AccountFilterActivity.EXTRA_CONTACT_LIST_FILTER, filter);