summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2015-09-09 17:51:27 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-09-14 10:47:17 -0700
commita5aa75d6ac958822e145b61e7c475bd1dc1b5260 (patch)
tree2bdad1ca02b17e4fef67d0fa30bc323ebd9cfb5e /AndroidManifest.xml
parent78aee6b67dd0e9483a4994bef8b7cb4c1a9fdb78 (diff)
downloadandroid_packages_apps_Gallery2-a5aa75d6ac958822e145b61e7c475bd1dc1b5260.tar.gz
android_packages_apps_Gallery2-a5aa75d6ac958822e145b61e7c475bd1dc1b5260.tar.bz2
android_packages_apps_Gallery2-a5aa75d6ac958822e145b61e7c475bd1dc1b5260.zip
Gallery3d : Fix CROP_ACTION for third party apps
Certain apps such as google photos, don't respect return-data true, since the bitmap could be very large. Switch to a file provider to pass the external apps a uri to write cropped results to. Change-Id: I9ec8b8defaffa3d9fa0c2cdfd68422eeff5aef84
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 88a218ca8..216996017 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -436,5 +436,14 @@
android:label="@string/movie_view_label"
android:configChanges="orientation|keyboardHidden|screenSize|mnc|mcc">
</activity>
+ <provider
+ android:name="android.support.v4.content.FileProvider"
+ android:authorities="com.android.gallery3d.fileprovider"
+ android:exported="false"
+ android:grantUriPermissions="true">
+ <meta-data
+ android:name="android.support.FILE_PROVIDER_PATHS"
+ android:resource="@xml/file_paths" />
+ </provider>
</application>
</manifest>