diff options
author | likaid <likaid@codeaurora.org> | 2015-03-06 17:32:49 +0800 |
---|---|---|
committer | likaid <likaid@codeaurora.org> | 2015-03-06 17:32:49 +0800 |
commit | 0d00a0c5045114ce932954e3d9a388bdae9b3404 (patch) | |
tree | aee143def076c8e1690980febc1ddc002ca636a2 | |
parent | 9ea5b17335b70c4357d0838edddb55c1a0f13db8 (diff) | |
download | android_packages_apps_Snap-0d00a0c5045114ce932954e3d9a388bdae9b3404.tar.gz android_packages_apps_Snap-0d00a0c5045114ce932954e3d9a388bdae9b3404.tar.bz2 android_packages_apps_Snap-0d00a0c5045114ce932954e3d9a388bdae9b3404.zip |
SnapdragonCamera: Fix setting icons display abnormal.
When switch to camera in landscape, the UI is not to set to
landscape which make the setting icon display abnormal.
When switch to camera in landscape, make the UI to reset
the orientation.
Change-Id: I7c49cf7ac2bebfc2debd5b6e90449931ca6d6d74
CRs-Fixed: 803557
-rw-r--r-- | src/com/android/camera/PhotoModule.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index e6a96f3d4..aa8caaf3e 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -1844,8 +1844,7 @@ public class PhotoModule if (orientation == OrientationEventListener.ORIENTATION_UNKNOWN) return; int oldOrientation = mOrientation; mOrientation = CameraUtil.roundOrientation(orientation, mOrientation); - if (oldOrientation != mOrientation && - oldOrientation != OrientationEventListener.ORIENTATION_UNKNOWN) { + if (oldOrientation != mOrientation) { Log.v(TAG, "onOrientationChanged, update parameters"); if (mParameters != null && mCameraDevice != null) { setFlipValue(); |