From 89eb10e3461581744aca2653f372caee1e2c8ce7 Mon Sep 17 00:00:00 2001 From: Jigar Thakkar Date: Tue, 17 Jan 2023 15:41:26 +0000 Subject: [PATCH] Add separate category header string for clone accounts This change adds the string identifiers for clone category headers and content descriptions. Additionally, we add an xml property to set the default clone category header that will be used as a header for cloned accounts in the account management dashboard. Bug: 260181765 Test: Tested by flashing on sunfish and checking account manager UI Change-Id: Ie0a351bb48033298b8283b7351d3d4d9a102d331 --- .../android/app/admin/DevicePolicyResources.java | 13 +++++++++++++ packages/SettingsLib/res/values/strings.xml | 3 +++ 2 files changed, 16 insertions(+) diff --git a/core/java/android/app/admin/DevicePolicyResources.java b/core/java/android/app/admin/DevicePolicyResources.java index 77ba560f29a19..087e7481f1f59 100644 --- a/core/java/android/app/admin/DevicePolicyResources.java +++ b/core/java/android/app/admin/DevicePolicyResources.java @@ -242,6 +242,12 @@ public final class DevicePolicyResources { public static final String ACCESSIBILITY_CATEGORY_PERSONAL = PREFIX + "ACCESSIBILITY_CATEGORY_PERSONAL"; + /** + * Content description for clone profile accounts group + */ + public static final String ACCESSIBILITY_CATEGORY_CLONE = + PREFIX + "ACCESSIBILITY_CATEGORY_CLONE"; + /** * Content description for work profile details page title */ @@ -1171,6 +1177,13 @@ public final class DevicePolicyResources { public static final String PERSONAL_CATEGORY_HEADER = PREFIX + "PERSONAL_CATEGORY_HEADER"; + /** + * Header for items under the clone user + */ + public static final String CLONE_CATEGORY_HEADER = + PREFIX + "CLONE_CATEGORY_HEADER"; + + /** * Text to indicate work notification content will be shown on the lockscreen. */ diff --git a/packages/SettingsLib/res/values/strings.xml b/packages/SettingsLib/res/values/strings.xml index 214c9035fc8e3..de1adf389655d 100644 --- a/packages/SettingsLib/res/values/strings.xml +++ b/packages/SettingsLib/res/values/strings.xml @@ -516,6 +516,9 @@ Personal Work + + Clone +