commit | 7d62e546b3b9eedc1f5c9d8f3ee644025f554fe3 | [log] [tgz] |
---|---|---|
author | Angus Kong <shkong@google.com> | Tue Apr 23 16:44:33 2013 -0700 |
committer | Angus Kong <shkong@google.com> | Tue Apr 23 17:14:02 2013 -0700 |
tree | 9ccbbaaf2e077e62ab3a4e95f131c6a1d69c360f | |
parent | 8600c562b8ed0f636bc966a8aac83dc90326f0fb [diff] |
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 24201ff..f2f632c 100644 --- a/src/com/android/gallery3d/app/OrientationManager.java +++ b/src/com/android/gallery3d/app/OrientationManager.java
@@ -85,7 +85,7 @@ 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() {