diff options
author | Earl Ou <shunhsingou@google.com> | 2012-08-01 18:02:07 +0800 |
---|---|---|
committer | Earl Ou <shunhsingou@google.com> | 2012-08-06 15:22:30 +0800 |
commit | 52f093f1b7b99622c35931f0af47349d32a67e19 (patch) | |
tree | ad7e867528b3b4257dc0e899c0d98e117153db0b | |
parent | 4285894ea4facfae76ff57df97f4fd8342608bd4 (diff) | |
download | android_packages_apps_Snap-52f093f1b7b99622c35931f0af47349d32a67e19.tar.gz android_packages_apps_Snap-52f093f1b7b99622c35931f0af47349d32a67e19.tar.bz2 android_packages_apps_Snap-52f093f1b7b99622c35931f0af47349d32a67e19.zip |
Fix bug when call next() after nextidf in exif parser
Change-Id: Ibb0204627418f8fa650ce32e798a768da7762d59
-rw-r--r-- | src/com/android/gallery3d/exif/IfdParser.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/exif/IfdParser.java b/src/com/android/gallery3d/exif/IfdParser.java index 6638dafcb..e91b29dcd 100644 --- a/src/com/android/gallery3d/exif/IfdParser.java +++ b/src/com/android/gallery3d/exif/IfdParser.java @@ -85,6 +85,8 @@ public class IfdParser { } else { if (offset <= mOffsetToNextIfd) { skipTo(mOffsetToNextIfd); + // Reset mOffsetToNextIfd to 0 so next call to next() will point to the end + mOffsetToNextIfd = 0; return TYPE_NEXT_IFD; } else { return TYPE_END; |