summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2013-06-03 11:17:08 -0700
committerRuben Brunk <rubenbrunk@google.com>2013-06-03 11:17:08 -0700
commit1f48263ef924d9c92deb1e11b3b0cf94673ac1c5 (patch)
tree131d62bd2641c9cc24a70fd47eed9c960fa54f15 /src/com/android
parentd42c203a7fbbef58af268e7dcec295b7cdca6e4a (diff)
downloadandroid_packages_apps_Snap-1f48263ef924d9c92deb1e11b3b0cf94673ac1c5.tar.gz
android_packages_apps_Snap-1f48263ef924d9c92deb1e11b3b0cf94673ac1c5.tar.bz2
android_packages_apps_Snap-1f48263ef924d9c92deb1e11b3b0cf94673ac1c5.zip
Fixes reading exif tags in editor.
Bug: 9140401 Change-Id: Ic84efca90c5297ab2c6a65b13d512c4799e623f6
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java b/src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java
index c5851c476..008cb572c 100644
--- a/src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java
+++ b/src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java
@@ -133,7 +133,7 @@ public class SaveCopyTask extends AsyncTask<ImagePreset, Void, Uri> {
public ExifInterface getExifData(Uri source) {
ExifInterface exif = new ExifInterface();
String mimeType = context.getContentResolver().getType(sourceUri);
- if (mimeType == ImageLoader.JPEG_MIME_TYPE) {
+ if (mimeType.equals(ImageLoader.JPEG_MIME_TYPE)) {
InputStream inStream = null;
try {
inStream = context.getContentResolver().openInputStream(source);