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 /src/com/android/gallery3d/filtershow/cache/ImageLoader.java | |
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 'src/com/android/gallery3d/filtershow/cache/ImageLoader.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/cache/ImageLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/cache/ImageLoader.java b/src/com/android/gallery3d/filtershow/cache/ImageLoader.java index ea559e569..30d535d77 100644 --- a/src/com/android/gallery3d/filtershow/cache/ImageLoader.java +++ b/src/com/android/gallery3d/filtershow/cache/ImageLoader.java @@ -108,7 +108,7 @@ public final class ImageLoader { new String[] { MediaStore.Images.ImageColumns.ORIENTATION }, null, null, null); if (cursor != null && cursor.moveToNext()) { - int ori = cursor.getInt(0); + int ori = cursor.getColumnIndexOrThrow(MediaStore.Images.ImageColumns.ORIENTATION); switch (ori) { case 90: return ORI_ROTATE_90; |