diff options
| author | Doris Liu <tianliu@google.com> | 2013-06-05 10:51:10 -0700 |
|---|---|---|
| committer | Doris Liu <tianliu@google.com> | 2013-06-05 20:15:46 +0000 |
| commit | 6c604d616ff796f1ec41d4ad7212729cf469e8f5 (patch) | |
| tree | d0173c1d10f29ba6f2a5d660e1e1a32478dc0ec4 /src | |
| parent | 2ca1f2a7a4cec46988bfc95df5ac056316584f98 (diff) | |
| download | android_packages_apps_Gallery2-6c604d616ff796f1ec41d4ad7212729cf469e8f5.tar.gz android_packages_apps_Gallery2-6c604d616ff796f1ec41d4ad7212729cf469e8f5.tar.bz2 android_packages_apps_Gallery2-6c604d616ff796f1ec41d4ad7212729cf469e8f5.zip | |
Update preview size for focus manager after rotation
Bug: 9282724
Change-Id: I5c0f0ecb2bf47e9600198450a9fce3590b2c5d10
(cherry picked from commit c71bd4f897a2322baa6765aa8abcf2c3fe35c05a)
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/camera/PhotoUI.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java index a364d797e..68507f461 100644 --- a/src/com/android/camera/PhotoUI.java +++ b/src/com/android/camera/PhotoUI.java @@ -107,9 +107,9 @@ public class PhotoUI implements PieListener, w = height; h = width; } - if (mPreviewWidth != w || mPreviewHeight != h) { - mPreviewWidth = w; - mPreviewHeight = h; + if (mPreviewWidth != width || mPreviewHeight != height) { + mPreviewWidth = width; + mPreviewHeight = height; mController.onScreenSizeChanged(width, height, w, h); } } |
