diff options
author | Wu-cheng Li <wuchengli@google.com> | 2009-12-09 14:02:47 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2009-12-09 14:02:47 +0800 |
commit | 69d05c5c970a83ef5f429130ad378dd00f72c30c (patch) | |
tree | 1f53e951b6234aa1c8200f65e4d5aaf01b7f1aba /src | |
parent | ff58fb6921ccb7398ad30c8cec604c38c76be4fc (diff) | |
download | LegacyCamera-69d05c5c970a83ef5f429130ad378dd00f72c30c.zip LegacyCamera-69d05c5c970a83ef5f429130ad378dd00f72c30c.tar.gz LegacyCamera-69d05c5c970a83ef5f429130ad378dd00f72c30c.tar.bz2 |
Fix the bug that -1 may be passed to setRotation.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/Camera.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index 6fea12a..0367264 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -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; |