summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2011-08-26 22:34:13 +0800
committerOwen Lin <owenlin@google.com>2011-08-26 22:34:13 +0800
commit57382b756d26cb58fe6e53e8238edb745c882cd8 (patch)
tree0a68c6cdef4f8db070c8b48b951c4bddba17b7a6 /src/com/android/gallery3d
parent11e7f198384fc18a624b27980fc65ef65fd3cbcb (diff)
downloadandroid_packages_apps_Snap-57382b756d26cb58fe6e53e8238edb745c882cd8.tar.gz
android_packages_apps_Snap-57382b756d26cb58fe6e53e8238edb745c882cd8.tar.bz2
android_packages_apps_Snap-57382b756d26cb58fe6e53e8238edb745c882cd8.zip
Fix: 5217165, cannot edit downloaded image
The contentUri of the download image is "file:///xxx". Thus, it cannot get the correct file type. So, we pass the mimetype in the intent to fix this issue. Change-Id: I49b4b96472eb6a1561fbada95190c829728c037e
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r--src/com/android/gallery3d/ui/MenuExecutor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/MenuExecutor.java b/src/com/android/gallery3d/ui/MenuExecutor.java
index 710ddc422..637c01ec4 100644
--- a/src/com/android/gallery3d/ui/MenuExecutor.java
+++ b/src/com/android/gallery3d/ui/MenuExecutor.java
@@ -345,7 +345,7 @@ public class MenuExecutor {
try {
activity.startActivity(Intent.createChooser(
new Intent(Intent.ACTION_EDIT)
- .setData(item.getContentUri())
+ .setDataAndType(item.getContentUri(), item.getMimeType())
.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION),
null));
} catch (Throwable t) {