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 | 3ebec4bb830b61c365849972d0b7d4aa1bb91adb (patch) | |
tree | c3e82e86e4707a31dbb77b865450175767942914 /src/com/android/gallery3d | |
parent | 7d8caf1774c61657bb3fbe63acc3e2749115b3a3 (diff) | |
download | android_packages_apps_Gallery2-3ebec4bb830b61c365849972d0b7d4aa1bb91adb.tar.gz android_packages_apps_Gallery2-3ebec4bb830b61c365849972d0b7d4aa1bb91adb.tar.bz2 android_packages_apps_Gallery2-3ebec4bb830b61c365849972d0b7d4aa1bb91adb.zip |
Fix bug when call next() after nextidf in exif parser
Change-Id: Ibb0204627418f8fa650ce32e798a768da7762d59
Diffstat (limited to 'src/com/android/gallery3d')
-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; |