Add Auto sync account data to account dashboard.

Add auto sync to User & accounts dashboard, and update
UserSettings to use the emergency info and add user when locked
controllers.

Test: RunSettingsRoboTests
Bug: 31801423
Change-Id: Ibf5a886276a9aa8f53c548036aecfd6c4d759ae3
This commit is contained in:
Doris Ling
2016-10-31 17:08:04 -07:00
parent 5abaef7dd1
commit 86e1df9bd9
10 changed files with 528 additions and 98 deletions

View File

@@ -58,6 +58,9 @@ public class UserAndAccountDashboardFragment extends DashboardFragment {
new AddUserWhenLockedPreferenceController(context);
controllers.add(addUserWhenLockedPrefController);
getLifecycle().addObserver(addUserWhenLockedPrefController);
controllers.add(new AutoSyncDataPreferenceController(context, this));
controllers.add(new AutoSyncPersonalDataPreferenceController(context, this));
controllers.add(new AutoSyncWorkDataPreferenceController(context, this));
return controllers;
}