summaryrefslogtreecommitdiff
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
author Abhijeet Kaur <abkaur@google.com> 2022-05-04 20:42:22 +0100
committer Abhijeet Kaur <abkaur@google.com> 2022-05-18 15:45:47 +0100
commit2bfef1bc41532c99f549281dfbcfbe79796572d8 (patch)
treeb5511bccb3ffca1cc726b8dc05172c06f98c5a4a /AndroidManifest.xml
parent8d813c21ecd5aa4cfde8dd8609f278362154bdd6 (diff)
Enable Photo Picker GET_CONTENT take-over behind a flag
PhotoPicker also catches GET_CONTENT intent with "*/*" setType, as what that setType implies is return all mimeTypes. Hence an activity which returns "image/*" and "video/*" can handle that intent. This is just intent behavior and PhotoPicker needs to handle this case. PhotoPicker onCreate() needs to check if GET_CONTENT with "*/*" has media type EXTRA_MIME_TYPES filters (as it has higher priority). If the intent is really for all file types (not just images/videos), then we redirect it to DocumentsUI. Redirecting to DocumentsUI requires explicit component name set as PhotoPickerActivity has higher priority to catch the intents. Also, remove some stale code from supporting "Browse.." (aka link to DocumentsUi) from PhotoPicker when invoked via GET_CONTENT. Bug: 231413552 Test: manual (see video attached to the bug) Change-Id: I1fd18e060698e28d4af2e9f0b968c587c4675d4a
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 788df5d28..ea7ddc915 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -183,7 +183,7 @@
android:exported="true"
android:excludeFromRecents="true"
android:enabled="false">
- <intent-filter>
+ <intent-filter android:priority="101" >
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.OPENABLE" />
<category android:name="android.intent.category.DEFAULT" />