History log of /packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a181ca6021333cbb96ff9a6abeec9e64ea19c7f9 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace several usages for of AccountTypeManager.getAccounts

Test: Ran GoogleContactsTests

Bug 33627801

Change-Id: Ifde6c5f314558159bb468c92fa38b20a8d90bf06
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
396aab726710c557188ace4e961064a65900524a 12-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace AccountTypeManager usages in PeopleActivity

Changed usages of getAccounts to other methods that are safe to call
synchronously from UI thread (getAccounts may require DB query and
parsing).

Test manually verify that sync loading spinner disappears after
doing pull-to-refresh

Bug 33627801
Change-Id: I1ec162e0fd5214d36e96d1746ee26150caecab25
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
69c182afb0e6d82a341a28b4317aa703af768906 05-Dec-2016 Gary Mai <garymai@google.com> Collapse common packages (1/?)

Move the majority of packages out of common. When trying to move
common.activity to activities every file switched from a rename to
separated deletes and adds. Will move tests and the rest of common
in a separate CL.

Test: Built GoogleContacts, Contacts, GoogleContactsTests,
ContactsTests.

Bug: 33252370
Change-Id: I9ffb20038dee255ef5f83002b7870265771b08c5
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
a0233a048858f1593ea4924e9c5036f39aedbcdd 02-Nov-2012 Chiao Cheng <chiaocheng@google.com> Moving ContactListItemView and dependent classes.

Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary
dependencies into Contacts Common package.

Bug: 6993891
Change-Id: I3dfce84ad01932450dc09588c22903e7307d7da0
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
49d1b7e346022950b97414fa5dd49d9955645d53 11-Jan-2012 Makoto Onuki <omakoto@google.com> Use query parameters for account filter...

for the phone list and the contacts list.

The use of account query parameters with the "/contacts" URI requires
the provider side change I12e11168.

Note: "contacts to display" doesn't benefit from account_ID yet. We need
to add a new URI for this.

Change-Id: I7ed72d65125d2aa8b691af0196b04a5f611de5cf
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
be79b8f05f45c4cddeea9106399521529ec27cae 10-Nov-2011 Katherine Kuan <katherinekuan@google.com> Intercept single contact mode and reset to last saved preference

Single contact mode is hard to get out of unless the user
changes the "contacts to display" filter setting.

Thus, whenever the PeopleActivity onStop() is called and the user
and reenters through onStart() - we reset the contact filter back
to the last saved filter according to SharedPreferences.

Since ContactListFilterController is a singleton, we have to
be careful in making sure the filter state is consistent with
the all fragment filter state because there can be multiple
PeopleActivity instances (i.e. another app launched People).

Bug: 5526485
Change-Id: I748ffc158a2de778dd9ecce4ab7f132af196b9a3
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
0647bdb63b41a968f6c07d1a1e600f5a0208d043 08-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop using "group" filter.

The filter had been used in HC but now just causes app crash on
People. This change removes relevant codes and just redirects
users to ALL filter.

Bug: 5581081
Change-Id: Ib4c9b6c2c89149070ec08008cb15c89c3ef5aaf8
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
a012aec6f22dd6a37c518c895db45b173e186ef4 16-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make a Singleton for ContactListFilterController

Better fix for issue 5165507 "Contacts to Display filter loses its
setting when going from People to Phone app". Now the whole app
has one instance and People and Phone UIs share it. All notification
will be delivered to both Activities, and thus no hack on onStart()
will be needed.

Also fixes issue 5299160 "Account filter header not updated when account
is removed from device". We need to update filter after
AccountTypeManager finishes its reload operation.

Now filter settings should be saved only from the controller, so this
change removes the code saving filter settings to SharedPreferences from
Activity/Fragment.

Bug: 5165507
Bug: 5299160
Change-Id: I4118271f1a78976af6cb3d432b1dd7b30c18eb7a
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
edb695b21967d464c7593f99368adf28a63247f7 31-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Choose ALL filter when there's no filter saved yet

We currently choose CUSTOM filter when there's no filter saved
in shared preferences. It was for keeping users' choice in GB.

Note that in GB we didn't have filter mechanism at all, and what we
had at that moment is what we call "custom filter" in ICS
(custom filter == showing contacts in IN_VISIBLE_GROUP on our
ContactsProvider2)

The problem is that, the fallback choice is not only used after
GB-to-ICS migration but also used when users boot the device
for the first time (after purchasing it, for example). Showing
"CUSTOM FILTER" for the first time of using Contacts app looks really
weird. Also we don't have no easy way to determine if the first app
launch is from migration or not.

Bug: 5241896
Change-Id: Ib151518837b063cf5071a924919d492385885b76
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
d4ed72eb6610b1318545741140569a973c4ab452 13-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use custom filter when filter isn't saved

- includes misc UI fix on tablet. width isn't set
correctly.

TESTED (needs the change above):
- keep contacts visibility after GB to ICS migration
- keep filter option between People and Phone UI
- keep filter option after People/Phone reboot (killing the process)

REMAINING ISSUES:
- Custom filter affects "All contacts" filter.
For example, if the user choose "All contacts" after showing
"Other contacts" using custom filter (in Google directory),
"Other contacts" will be shown (while it sholdn't).
"All contacts" should show contacts inside default_directory,
or at least it shouldn't be affected by previous custom filter
choice.
- Phone filter still shows "Other contacts" (with phones)
unxpectedly, which should be fixed.

Bug: 5153692
Change-Id: I5c8a9a51caaec967af66fd7840e45efe9802f283
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
2b3f3c54d3beb017b2f59f19e9ce0ecc3e039dbc 27-Jul-2011 Dave Santoro <dsantoro@google.com> App changes for account types with data sets.

This is primarily a replacement of the Android Account object in most
parts of the app with a new AccountWithDataSet object that extends
Account (by adding an additional attribute, the data set).

This also includes a major refactoring of the AccountTypeManager,
both to allow it to handle data sets and to allow for
non-sync-adapter packages to be referenced by the sync adapters for
an account and registered as sources of contact data. Attributes of
the sync adapter that would typically come from the authenticator
can be parsed out of the Contacts XML for these packages.

Bug 5077096

Change-Id: I88f311c64eae78c88e9999bff6f7de8538e62157
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
be18de05d6f6a107c552e369bce58f51c946fde7 07-Jun-2011 Katherine Kuan <katherinekuan@google.com> Add group detail fragment on tablet

- Add action bar on GroupDetailActivity, title, and subtitle
- Make everything use the groupUri instead of passing around
account name, type, group Id, and group title
- Fix some of the callback listeners between the group fragments
and group activities
- Add factory methods to ContactListFilter

Change-Id: I63066ea6eefde1e57562b6396d6dc590ed023c84
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
f35faebc816c9b84b96e11393eb18f9001f411b5 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Changing wording for empty contact list

Bug: 3338546
Change-Id: Ic9b9e5a7dda12e03252c80d116fff2460c86b348
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
264023c04b75043fa77267fd1b940d0afb13421d 15-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing dependency between filter loader and list loader

Change-Id: Iaeeb0071d34d9ed68c2704af2ba7fe8981ed435e
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
b5cd5959f0f0c5aa8ce50d3e872c0dcec12af9d4 29-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving package installation and account update listeners in the bg

Bug: 3228687
Change-Id: Id082dac2c2b21f09ccfc30afb5f734e8c36cb2d8
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
5096815f263545aa22f33e5aebe5a45f3118c5e9 20-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for new field: Groups.GROUP_IS_READ_ONLY

Bug: 3214137
Change-Id: I8cbae752b9ed417c8050cd74d7ba1d7d33d10b5b
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
6e850a046fcea8ba82a793b43944051246d08180 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing new selection policies in Contacts

1. Selection is now persistent per filter
2. If there is no selection or selection not in the list,
display the first item on the list
3. After creating a new contact or per user request
select the newly created contact in the list. If
it is not in the list, change filter to "Contact"
and display that contact by itself.

Change-Id: I9343fe9d25c86c5d041954d2386f66da2a1bc41f
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
009676f9f2a5d8d47756be37abd9a14f2e564979 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Support for Contacts with Phone Numbers Intent

In the new navigation model "contacts with phone numbers"
will be a filter that can be set via the intent,
but not explicitly in the contacts app except by using
a custom filter.

Change-Id: I4ae94812c5cab6c7e3834beff494c1e840019c03
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
c41524cbba2a292e97768e0113385bc83764c4f9 07-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding starred filter and placeholder icons

Change-Id: I1a8bfa59bdde0df35be5acb79f2158f2a56f22ef
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
fc7197e7f1bb7c8745c70a6a33dc0bec0e0fafee 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Making filter selection persistent

Change-Id: I703a71b3cb59bc3d1bf6256b7eaf12beb44e467f
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java
f7d450d12508ea67d3170068dcdf1a226358b06f 16-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Bringing display options to the browser screen

Change-Id: Ic316e51146ced2aef73a85d1ee5135c21d03a06c
/packages/apps/Contacts/src/com/android/contacts/list/ContactListFilter.java