From b772a24d9e639b482bec668e41ee5e69baa28d9a Mon Sep 17 00:00:00 2001 From: Mark Renouf Date: Tue, 9 Apr 2024 09:39:18 -0400 Subject: Private profile share policy delegates to parent profile This change enables the Private tab sharing to respect cross profile share policy and present an appropriate message when sharing is not available. When considering private profile as a source or target, the parent profile is substituded when checking whether any intents can be forwarded. Specialized subclasses of DevicePolicyBlockerEmptyState are eliminated in favor of creating instances as needed and returned by NoCrossProfileEmptyStateProvider. They are now initialized directly with the required content instead of resource Ids. Resource are moved to DevicePolicyResources where they are shared with ResolverActivity. When sharing content to Private from Work when blocked by policy the message will now correctly refer to 'Private apps'. Test: atest NoAppsAvailableEmptyStateProviderTest Test: manual, install TestDPC, setup private space; test verious permutations Flag: EXEMPT bugfix Bug: 324428064 Bug: 300157408 Change-Id: Ieb8e725191691ea92f2994a693086c2029452365 --- java/res/values/strings.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'java/res') diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index 17a514d7..32c61327 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -284,6 +284,12 @@ This content can\u2019t be opened with personal apps + + This content can\u2019t be shared with private apps + + + This content can\u2019t be opened with private apps + Work apps are paused -- cgit v1.2.3-59-g8ed1b