From 4ca5dc54a57d61b8bd116a2259f51a7cdc5ea184 Mon Sep 17 00:00:00 2001 From: Mark Renouf Date: Wed, 17 Apr 2024 17:26:13 -0400 Subject: 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 --- java/res/values/strings.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/res') 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 @@ No personal apps + + No private apps + Open %s in your personal profile? -- cgit v1.2.3-59-g8ed1b