Don't show intent picker when using camera attachment in a Managed Profile.

Fixes: 195300298

Test: Manual - Follow steps from comment #1 in the bug.
Change-Id: Ia58efda81b3cdb9b9f4d2a36cdc4af120d48e010
This commit is contained in:
Elis Elliott
2022-03-09 12:28:53 +00:00
parent c640ee83fb
commit 0adb17700c

View File

@@ -246,7 +246,7 @@ public class DefaultCrossProfileIntentFiltersUtils {
private static final DefaultCrossProfileIntentFilter MEDIA_CAPTURE =
new DefaultCrossProfileIntentFilter.Builder(
DefaultCrossProfileIntentFilter.Direction.TO_PARENT,
/* flags= */0,
/* flags= */ ONLY_IF_NO_MATCH_FOUND,
/* letsPersonalDataIntoProfile= */ true)
.addAction(MediaStore.ACTION_IMAGE_CAPTURE)
.addAction(MediaStore.ACTION_IMAGE_CAPTURE_SECURE)