diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-11-03 15:17:08 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-12-12 07:53:40 -0800 |
commit | b5f33bc3d537ea83b2f9136987f307ef8d7dcf67 (patch) | |
tree | ce616fe4e3ba2f3495e07098d6ac16f8c39748af /src | |
parent | 313ca2adb838fa1965fe2381b36a9d11b06c44da (diff) | |
download | android_packages_apps_Snap-b5f33bc3d537ea83b2f9136987f307ef8d7dcf67.tar.gz android_packages_apps_Snap-b5f33bc3d537ea83b2f9136987f307ef8d7dcf67.tar.bz2 android_packages_apps_Snap-b5f33bc3d537ea83b2f9136987f307ef8d7dcf67.zip |
Camera2: Reset zoom parameter after update
When exif data of a photo is changed, the view will update, but
the zoom parameter is not reset, and the image load the zoomed image
which is not exists, so there will be a black view.
When photo is update, reset zoom view to full image.
CRs-Fixed: 745326
Change-Id: I48a0a12241087ff9e99be83234b47b21c63b1867
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/ui/FilmStripView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/FilmStripView.java b/src/com/android/camera/ui/FilmStripView.java index 8c2909881..bc40b06b3 100644 --- a/src/com/android/camera/ui/FilmStripView.java +++ b/src/com/android/camera/ui/FilmStripView.java @@ -1966,6 +1966,7 @@ public class FilmStripView extends ViewGroup implements BottomControlsListener { return; } if (reporter.isDataUpdated(dataId)) { + resetZoomView(); updateViewItem(mCurrentItem); final ImageData data = mDataAdapter.getImageData(dataId); if (!mIsUserScrolling && !mController.isScrolling()) { |