OSDN Git Service

Add account sync summary.
authorDoris Ling <dling@google.com>
Wed, 28 Jun 2017 20:18:56 +0000 (13:18 -0700)
committerDoris Ling <dling@google.com>
Wed, 28 Jun 2017 20:18:56 +0000 (13:18 -0700)
commit771848dde0d2960b8ec7d359090ba5106d6bb727
tree89500166e404077430fa1fdbf06a6f59483164c3
parent051fb19dd402ff1e112b4ff9237f8497e5bd0588
Add account sync summary.

- Check for the number of sync adapter that is enabled for the account
and
update the summary text for the account sync preference accordingly.
- Add divider above the Remove Account button.

Bug: 62862167
Test: make RunSettingsRoboTests
Change-Id: Ic333f62cce9aed0a72771324976ebe3d8e586287
res/xml/account_type_settings.xml
src/com/android/settings/accounts/AccountSyncPreferenceController.java
src/com/android/settings/applications/LayoutPreference.java
tests/robotests/src/com/android/settings/accounts/AccountSyncPreferenceControllerTest.java
tests/robotests/src/com/android/settings/testutils/shadow/ShadowContentResolver.java