Support MIME type filters for ACTION_PICK_IMAGES
Client apps can filter by image/* or video/* mime types. To trigger
default PhotoPicker view with images and videos, no type needs to be
set.
Bug: 169737761
Bug: 185228105
Test: manual (see video on the bug)
Change-Id: Iad442622a46549f0d2865abd8f118acd0f4019f9
Merged-In: Iad442622a46549f0d2865abd8f118acd0f4019f9
(cherry picked from commit eca0047e0165f0c4a2d39f88ee99b1ae56182d18)
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a73f5d9..871b5b1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -149,6 +149,12 @@
<intent-filter>
<action android:name="android.provider.action.PICK_IMAGES" />
<category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="image/*" />
+ <data android:mimeType="video/*" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.provider.action.PICK_IMAGES" />
+ <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>