OSDN Git Service

Use FULL_SENSOR for unlocked orientation.
authorAngus Kong <shkong@google.com>
Tue, 23 Apr 2013 23:44:33 +0000 (16:44 -0700)
committerAngus Kong <shkong@google.com>
Wed, 24 Apr 2013 00:14:02 +0000 (17:14 -0700)
bug:8689453
Change-Id: Ia81d970772f091fbd9bec142acfd5e9f84e0a0fb

src/com/android/gallery3d/app/OrientationManager.java

index 24201ff..f2f632c 100644 (file)
@@ -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() {