OSDN Git Service

Add account sync summary.
authorDoris Ling <dling@google.com>
Wed, 21 Jun 2017 21:43:48 +0000 (14:43 -0700)
committerDoris Ling <dling@google.com>
Wed, 28 Jun 2017 20:37:17 +0000 (13:37 -0700)
commite76550a66e92e072aa1afa20a2bed7e8a6bd7924
tree8c92dee3bab5ac63c3f3f99467e7052cac4ac4f1
parenta6b24388fccd0a570120e4f3f03b9d8b42d82a69
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.

Merged-In: Ic333f62cce9aed0a72771324976ebe3d8e586287
Change-Id: I003d6dd0a070bf123f178b8d9ba7b6657466b905
Fix: 62862167
Test: make RunSettingsRoboTests
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