OSDN Git Service
(root)
/
android-x86
/
packages-apps-Camera.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff58fb6
)
Fix the bug that -1 may be passed to setRotation.
author
Wu-cheng Li
<wuchengli@google.com>
Wed, 9 Dec 2009 06:02:47 +0000
(14:02 +0800)
committer
Wu-cheng Li
<wuchengli@google.com>
Wed, 9 Dec 2009 06:02:47 +0000
(14:02 +0800)
src/com/android/camera/Camera.java
patch
|
blob
|
history
diff --git
a/src/com/android/camera/Camera.java
b/src/com/android/camera/Camera.java
index
6fea12a
..
0367264
100644
(file)
--- 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;