From: Angus Kong Date: Tue, 23 Apr 2013 23:44:33 +0000 (-0700) Subject: Use FULL_SENSOR for unlocked orientation. X-Git-Tag: android-x86-7.1-r1~610^2~105 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7d62e546b3b9eedc1f5c9d8f3ee644025f554fe3;p=android-x86%2Fpackages-apps-Gallery2.git Use FULL_SENSOR for unlocked orientation. bug:8689453 Change-Id: Ia81d970772f091fbd9bec142acfd5e9f84e0a0fb --- diff --git a/src/com/android/gallery3d/app/OrientationManager.java b/src/com/android/gallery3d/app/OrientationManager.java index 24201ff24..f2f632c9f 100644 --- a/src/com/android/gallery3d/app/OrientationManager.java +++ b/src/com/android/gallery3d/app/OrientationManager.java @@ -85,7 +85,7 @@ public class OrientationManager implements OrientationSource { if (!mOrientationLocked) return; mOrientationLocked = false; Log.d(TAG, "unlock orientation"); - mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); + mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); } private int calculateCurrentScreenOrientation() {