summaryrefslogtreecommitdiff
path: root/java/res
diff options
context:
space:
mode:
author Mark Renouf <mrenouf@google.com> 2024-04-17 17:26:13 -0400
committer Mark Renouf <mrenouf@google.com> 2024-04-19 10:47:08 -0400
commit4ca5dc54a57d61b8bd116a2259f51a7cdc5ea184 (patch)
tree5c6ca057bb0c64b667aa277ab4487656a5af5ee7 /java/res
parent56bae808e5af2bde54a69f95aa0c9ba19edc051c (diff)
Fix "NoAppsAvailableEmptyStateProvider" message for Private
Updates the logic to simplify and correct correct labels for private profile. When there is only a single visible profile (personal), the default empty state is returned, otherwise present the more informative "No work apps", "No private apps" or "No personal apps" is shown. To send an intent to share via Sharesheet which matches no installed apps: adb shell am start -a android.intent.action.CHOOSER --eu android.intent.extra.INTENT data:text/plain;base64,SGVsbG8sIFdvcmxkIQ== Explanation: ChooserActivity accepts EXTRA_INTENT containing either an Intent or a URI. In this case the data: uri is decoded and results in a string -as- the intent which doesn't match any apps. Bug: 334039327 Test: manual, see adb command Test: With work profile paused, and unpaused Test: With private profile locked, and unlocked Change-Id: I1e2565686fb8f7bcf15611541e905cf903e64704
Diffstat (limited to 'java/res')
-rw-r--r--java/res/values/strings.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml
index 5c1210b7..17a514d7 100644
--- a/java/res/values/strings.xml
+++ b/java/res/values/strings.xml
@@ -295,6 +295,9 @@
<!-- Error message. This text lets the user know that their current personal apps don't support the specific content. [CHAR LIMIT=NONE] -->
<string name="resolver_no_personal_apps_available">No personal apps</string>
+ <!-- Error message. This text lets the user know that their current private apps don't support the specific content. [CHAR LIMIT=NONE] -->
+ <string name="resolver_no_private_apps_available">No private apps</string>
+
<!-- Dialog title. User must choose between opening content in a cross-profile app or same-profile browser. [CHAR LIMIT=NONE] -->
<string name="miniresolver_open_in_personal">Open <xliff:g id="app" example="YouTube">%s</xliff:g> in your personal profile?</string>
<!-- Dialog title. User must choose between opening content in a cross-profile app or same-profile browser. [CHAR LIMIT=NONE] -->