diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2011-10-28 10:00:00 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2011-10-28 10:00:00 -0700 |
commit | c3a0c2d4b7c1ec7bd8dc6190a0a68a6ff90cb629 (patch) | |
tree | 400f7b14ce8df5aa3f93c5111166f3b04dabd062 /src/com | |
parent | e7445c558d6f58ef1006abf7c589ca075fdf13a4 (diff) | |
download | LegacyCamera-c3a0c2d4b7c1ec7bd8dc6190a0a68a6ff90cb629.zip LegacyCamera-c3a0c2d4b7c1ec7bd8dc6190a0a68a6ff90cb629.tar.gz LegacyCamera-c3a0c2d4b7c1ec7bd8dc6190a0a68a6ff90cb629.tar.bz2 |
Update recording orientation in more states.
Once effects preview was started, no changes to recording orientation
would take effect. This results in incorrectly oriented videos for the
front camera, if the device is rotated after an effect is selected and
before recording is started.
Bug: 5531485
Change-Id: I0b59d72d446275f4a3b8dc7aabc98783efdd17cb
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/camera/EffectsRecorder.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/camera/EffectsRecorder.java b/src/com/android/camera/EffectsRecorder.java index a561011..d5f83ef 100644 --- a/src/com/android/camera/EffectsRecorder.java +++ b/src/com/android/camera/EffectsRecorder.java @@ -337,8 +337,7 @@ public class EffectsRecorder { } private void setRecordingOrientation() { - if ( (mState == STATE_CONFIGURE || mState == STATE_WAITING_FOR_SURFACE) - && mRunner != null ) { + if ( mState != STATE_RECORD && mRunner != null) { Point bl = new Point(0, 0); Point br = new Point(1, 0); Point tl = new Point(0, 1); |