diff options
author | Danesh M <daneshm90@gmail.com> | 2015-09-09 17:51:27 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-09-14 10:47:17 -0700 |
commit | a5aa75d6ac958822e145b61e7c475bd1dc1b5260 (patch) | |
tree | 2bdad1ca02b17e4fef67d0fa30bc323ebd9cfb5e /slim_manifest | |
parent | 78aee6b67dd0e9483a4994bef8b7cb4c1a9fdb78 (diff) | |
download | android_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 'slim_manifest')
-rw-r--r-- | slim_manifest/AndroidManifest.xml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/slim_manifest/AndroidManifest.xml b/slim_manifest/AndroidManifest.xml index e515319e9..aae3467bc 100644 --- a/slim_manifest/AndroidManifest.xml +++ b/slim_manifest/AndroidManifest.xml @@ -233,6 +233,14 @@ </intent-filter> </activity> <service android:name="com.android.gallery3d.app.BatchService" /> - + <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> |