History log of /packages/apps/Contacts/src/com/android/contacts/util/SyncUtil.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/util/SyncUtil.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/util/SyncUtil.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/util/SyncUtil.java
395c3f8bafa89578d4559cf108eb668040e5ac93 18-Oct-2016 yaolu <yaolu@google.com> Show error when user pulls to refresh without network connection

Bug: 32012818
Test: Manually test when network is connected/not connected.
Change-Id: Ic6aabc8c52dca0886f28dda136f7e6e265cfe1f5
/packages/apps/Contacts/src/com/android/contacts/util/SyncUtil.java
491cca577389d6b38f969a167f817f5f3a1013d4 30-Sep-2016 yaolu <yaolu@google.com> Show sync-off alert

In all contacts list:
alert user when global sync is off if user never dismissed before,
until sync setting is toggled on then off again.

In account view:
when global sync is off, show alert with the same logic for all
contacts list;
when global sync is on, alert user when contacts sync for this account
is off if user never dismissed before, until contacts sync is toggled
on then off again.

Bug: 31755559

Test: Manually tested the scenarios:
1) Add/remove account,
2) switch between all contacts list, account view, and label views,
3) update contacts information,
3) turn on sync/dismiss from alert,
when global sync is on/off, contacts syncs are all on/off, contacts
sync is on/off for a particular account.

Change-Id: Id5001847270d5a984942c63a42edb5f9401bc2c2
/packages/apps/Contacts/src/com/android/contacts/util/SyncUtil.java
a455bd58203ba4b4e8001fb0bffd665146556d24 26-Jul-2016 Xi Chen <samchen@google.com> Missing contacts & accounts issue

This CL is to solve missing contacts & accounts after adding new
accounts from Settings. New accounts will appear in the app immediately.
If the sync of the Google account is not initialized, it uses spinning circle
to indicate sync is in progress.

BUG 30378161

Change-Id: I370e63e10b16791011f533cf7ca325bff8ccd3f2
/packages/apps/Contacts/src/com/android/contacts/util/SyncUtil.java
4a7a9ea9ce12734da8e7ac19b8a260544d713c22 20-Jul-2016 Xi Chen <samchen@google.com> Get and show new focus sync status on pullToRefresh (Flag Control)

This feature only supports Google accounts. It will get and show
sync status for current filter account.

BUG 28625097

Change-Id: I6439638f4fd99f3e8991d87e538259859bc7a6e5
/packages/apps/Contacts/src/com/android/contacts/util/SyncUtil.java