Update Work profile settings
Change work apps toggle to a primary toggle make Xprofile contact search toggle disable/enable when work profile is turned off Add footer and change strings Add tests Test: atest ContactSearchPreferenceControllerTest, atest WorkModePreferenceControllerTest Bug: 253009702 275538029 Change-Id: I3b2044a5fe3f2aff0748d66e701a3f0d7667ab7a
This commit is contained in:
@@ -5873,12 +5873,8 @@
|
||||
<string name="add_account_label">Add account</string>
|
||||
<!-- Label for the state of the work profile [CHAR LIMIT=80] -->
|
||||
<string name="managed_profile_not_available_label">Work profile isn\u2019t available yet</string>
|
||||
<!-- This string is the title of a setting. If a user taps the setting, they can turn their work profile on or off. The work profile is a section of their phone that's managed by their employer. "Work" is an adjective. -->
|
||||
<string name="work_mode_label">Work profile</string>
|
||||
<!-- This string is located under a setting and describes what the setting does. It's letting a user know whether their work profile is on or off, and they can use the setting to turn it on or off. The work profile is a section of their phone that's managed by their employer. "Work" is an adjective.-->
|
||||
<string name="work_mode_on_summary">Managed by your organization</string>
|
||||
<!-- This string is located under a setting and describes what the setting does. It's letting a user know whether their work profile is on or off, and they can use the setting to turn it on or off. The work profile is a section of their phone that's managed by their employer. "Work" is an adjective.-->
|
||||
<string name="work_mode_off_summary">Apps and notifications are off</string>
|
||||
<!-- This string is the title of a setting. If a user taps the setting, they can turn their work apps on or off. The work apps are a group of apps that are managed by the the user's employer. While this setting is off, the user cannot interact with those apps or get notifications from them. "Work" is an adjective. -->
|
||||
<string name="work_mode_label">Work apps</string>
|
||||
<!-- Button label to remove the work profile [CHAR LIMIT=35] -->
|
||||
<string name="remove_managed_profile_label">Remove work profile</string>
|
||||
<!-- Data synchronization settings screen, title of setting that controls whether background data should be used [CHAR LIMIT=30] -->
|
||||
@@ -9779,6 +9775,8 @@
|
||||
<string name="cross_profile_calendar_title">Cross-profile calendar</string>
|
||||
<!-- [CHAR LIMIT=NONE] Setting description. If the user turns on this setting, they can see their work events on their personal calendar. -->
|
||||
<string name="cross_profile_calendar_summary">Show work events on your personal calendar</string>
|
||||
<!-- [CHAR_LIMIT_NONE] Footer description. Explains to the user what will happen when work apps are turned off. -->
|
||||
<string name="managed_profile_settings_footer">When work apps are off, they’re paused and can’t be accessed or send you notifications</string>
|
||||
|
||||
<!-- Used as title on the automatic storage manager settings. [CHAR LIMIT=60] -->
|
||||
<string name="automatic_storage_manager_settings">Manage storage</string>
|
||||
|
@@ -19,10 +19,9 @@
|
||||
android:key="managed_profile_settings_screen"
|
||||
android:title="@string/managed_profile_settings_title">
|
||||
|
||||
<SwitchPreference
|
||||
<com.android.settingslib.widget.MainSwitchPreference
|
||||
android:key="work_mode"
|
||||
android:title="@string/work_mode_label"
|
||||
android:summary="@string/summary_placeholder"
|
||||
settings:controller="com.android.settings.accounts.WorkModePreferenceController"/>
|
||||
|
||||
<com.android.settingslib.RestrictedSwitchPreference
|
||||
@@ -38,4 +37,9 @@
|
||||
android:title="@string/cross_profile_calendar_title"
|
||||
settings:controller="com.android.settings.accounts.CrossProfileCalendarPreferenceController"/>
|
||||
|
||||
<com.android.settingslib.widget.FooterPreference
|
||||
android:title="@string/managed_profile_settings_footer"
|
||||
android:key="managed_profile_footer"
|
||||
settings:searchable="false"/>
|
||||
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user