[Partial Screensharing] Add abstraction to show custom device policy blockers in ChooserActivity
Adds an interface that controls the behavior of the blocked empty state of personal/work profile tabs in the ChooserActivity/ResolverActivity. This state is displayed when the device policy doesn't allow sharing between apps. The interface allows to customize in which cases we block the sharing, what text we display there and send custom analytics events. This CL should not change any behaviour. Default behaviour is to not allow cross profile sharing which could be overriden by using different implementation of the ProfileBlockerEmptyStateProvider. E.g. in partial screensharing app selector we could decide whether we want to block the tab based on the screen capturing device policies. Bug: 233348916 Test: atest com.android.internal.app.ChooserActivityTest Test: atest com.android.internal.app.ResolverActivityTest Test: atest com.android.internal.app.ChooserActivityWorkProfileTest Test: atest com.android.internal.app.ResolverActivityWorkProfileTest Change-Id: I6b46c9424644016d7e2f472a95b0b5583c58c2cb
Loading
Please register or sign in to comment