OSDN Git Service

Fix the bug that -1 may be passed to setRotation.
authorWu-cheng Li <wuchengli@google.com>
Wed, 9 Dec 2009 06:02:47 +0000 (14:02 +0800)
committerWu-cheng Li <wuchengli@google.com>
Wed, 9 Dec 2009 06:02:47 +0000 (14:02 +0800)
src/com/android/camera/Camera.java

index 6fea12a..0367264 100644 (file)
@@ -116,7 +116,7 @@ public class Camera extends NoSearchActivity implements View.OnClickListener,
     private Parameters mInitialParams;
 
     private OrientationEventListener mOrientationListener;
-    private int mLastOrientation = OrientationEventListener.ORIENTATION_UNKNOWN;
+    private int mLastOrientation = 0;  // No rotation (landscape) by default.
     private SharedPreferences mPreferences;
 
     private static final int IDLE = 1;