From b5f33bc3d537ea83b2f9136987f307ef8d7dcf67 Mon Sep 17 00:00:00 2001 From: kaiyiz Date: Mon, 3 Nov 2014 15:17:08 +0800 Subject: 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 --- src/com/android/camera/ui/FilmStripView.java | 1 + 1 file changed, 1 insertion(+) 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()) { -- cgit v1.2.3