OSDN Git Service

Add tablayout for work/personal profile
authorRaff Tsai <rafftsai@google.com>
Sat, 5 Oct 2019 01:32:19 +0000 (09:32 +0800)
committerRaff Tsai <rafftsai@google.com>
Tue, 15 Oct 2019 10:01:08 +0000 (18:01 +0800)
commit65866290ce2024d297ef149b9bf176eacdc53722
tree8ca78f228a8ae8c55b7a91ffe1b5260b5c44a258
parenta152d2bd61b7ea2a29900a22045cb69dcf7b94fd
Add tablayout for work/personal profile

- Add Tablayout in ProfileSelectFragment
- Add AccountWorkProfileDashboardFragment inherited from
ProfileSelectFragment
- Add ProfileFragmentBridge to convert AccountDashboardFragment
to AccountProfileSelectFragment
- Use flag settings_work_profile to guard the new fragment

Bug: 141601408
Test: Settings->developer options->feature flags->
turn settings_work_profile on/off, then go to settings->account
to see if UI is changed.

Change-Id: Ifb32c22cdeab69c51517664081cacf4a401c46a1
13 files changed:
res/layout/profile_select_tablayout.xml [new file with mode: 0644]
res/xml/accounts_personal_dashboard_settings.xml [new file with mode: 0644]
res/xml/accounts_work_dashboard_settings.xml [new file with mode: 0644]
src/com/android/settings/SettingsActivity.java
src/com/android/settings/accounts/AccountDashboardFragment.java
src/com/android/settings/accounts/AccountPersonalDashboardFragment.java [new file with mode: 0644]
src/com/android/settings/accounts/AccountPreferenceController.java
src/com/android/settings/accounts/AccountProfileSelectFragment.java [new file with mode: 0644]
src/com/android/settings/accounts/AccountWorkProfileDashboardFragment.java [new file with mode: 0644]
src/com/android/settings/core/FeatureFlags.java
src/com/android/settings/dashboard/profileselector/ProfileFragmentBridge.java [new file with mode: 0644]
src/com/android/settings/dashboard/profileselector/ProfileSelectFragment.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/accounts/AccountPreferenceControllerTest.java