Show a separate tab for the Private Space
This covers all the known Settings pages using the tabbed view model. https://docs.google.com/document/d/1CdjUjAE84-5ZEPRIfw5KYFjLVHtEZxc_sF0w95su8DA/edit?resourcekey=0-dAACT9HRexY1IyoxMmkVlw#heading=h.58jd58rmznte Screenshots: all apps https://screenshot.googleplex.com/3E5Jm7Pi2JfN64r with work tab: https://screenshot.googleplex.com/8egk4yHK5jSENjR PS Apps Special media management apps https://screenshot.googleplex.com/BHHafqW7bgUwSGg with work tab: https://screenshot.googleplex.com/3cocdhruEmCCh5k PS Location Services tab view https://screenshot.googleplex.com/3DqJcT2BFTEpvYT with work tab: https://screenshot.googleplex.com/6Avpx6hxSrdGJw5 PS on screen keyboard tab view https://screenshot.googleplex.com/4FzVNnBWwbUeJNw with work tab: https://screenshot.googleplex.com/8E8UhpWq8PL5nxU PS password account tab view https://screenshot.googleplex.com/6bDR4AKtth2S3EW with work tab: https://screenshot.googleplex.com/9msXV2TdHdJapch PS storage tab view https://screenshot.googleplex.com/5Nk2FTxwdmpEv3B with work tab: https://screenshot.googleplex.com/79tw2EaWZKfMsnC PS appl_languages_work https://screenshot.googleplex.com/3qrREeg3RQdHhhH Bug: 302278487 Test: manual Change-Id: I8cd39170827fbe251bc4075ef306206020b3a022
This commit is contained in:
@@ -31,14 +31,17 @@ import com.android.settings.R;
|
||||
import com.android.settings.applications.autofill.PasswordsPreferenceController;
|
||||
import com.android.settings.applications.credentials.CredentialManagerPreferenceController;
|
||||
import com.android.settings.applications.credentials.DefaultCombinedPreferenceController;
|
||||
import com.android.settings.applications.credentials.DefaultPrivateCombinedPreferenceController;
|
||||
import com.android.settings.applications.credentials.DefaultWorkCombinedPreferenceController;
|
||||
import com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController;
|
||||
import com.android.settings.applications.defaultapps.DefaultPrivateAutofillPreferenceController;
|
||||
import com.android.settings.applications.defaultapps.DefaultWorkAutofillPreferenceController;
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
import com.android.settings.dashboard.profileselector.ProfileSelectFragment;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
import com.android.settings.users.AutoSyncDataPreferenceController;
|
||||
import com.android.settings.users.AutoSyncPersonalDataPreferenceController;
|
||||
import com.android.settings.users.AutoSyncPrivateDataPreferenceController;
|
||||
import com.android.settings.users.AutoSyncWorkDataPreferenceController;
|
||||
import com.android.settingslib.core.AbstractPreferenceController;
|
||||
import com.android.settingslib.search.SearchIndexable;
|
||||
@@ -111,9 +114,11 @@ public class AccountDashboardFragment extends DashboardFragment {
|
||||
if (CredentialManager.isServiceEnabled(context)) {
|
||||
controllers.add(new DefaultCombinedPreferenceController(context));
|
||||
controllers.add(new DefaultWorkCombinedPreferenceController(context));
|
||||
controllers.add(new DefaultPrivateCombinedPreferenceController(context));
|
||||
} else {
|
||||
controllers.add(new DefaultAutofillPreferenceController(context));
|
||||
controllers.add(new DefaultWorkAutofillPreferenceController(context));
|
||||
controllers.add(new DefaultPrivateAutofillPreferenceController(context));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,6 +137,7 @@ public class AccountDashboardFragment extends DashboardFragment {
|
||||
controllers.add(new AutoSyncDataPreferenceController(context, parent));
|
||||
controllers.add(new AutoSyncPersonalDataPreferenceController(context, parent));
|
||||
controllers.add(new AutoSyncWorkDataPreferenceController(context, parent));
|
||||
controllers.add(new AutoSyncPrivateDataPreferenceController(context, parent));
|
||||
}
|
||||
|
||||
private static int getPreferenceLayoutResId(Context context) {
|
||||
|
Reference in New Issue
Block a user