summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2011-09-28 22:17:40 +0800
committerAngus Kong <shkong@google.com>2011-10-03 18:44:13 +0800
commitff7106e9609981e79ba183b839223df392deefcf (patch)
treefd5bf6f4a9fa055de2768a5c7a39b29e180e8b68 /src/com
parent2bbd7e182f25816008262f2e2bd9a1a08392c913 (diff)
downloadLegacyCamera-ff7106e9609981e79ba183b839223df392deefcf.zip
LegacyCamera-ff7106e9609981e79ba183b839223df392deefcf.tar.gz
LegacyCamera-ff7106e9609981e79ba183b839223df392deefcf.tar.bz2
Fix recording time label in portrait mode.
bug:5039042 Change-Id: I61dd597b0b71566a00eb1cca45ea0b3e3019fac6
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/VideoCamera.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index 2c656dc..4107f42 100644
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -20,6 +20,7 @@ import com.android.camera.ui.CameraPicker;
import com.android.camera.ui.IndicatorControlContainer;
import com.android.camera.ui.IndicatorControlWheelContainer;
import com.android.camera.ui.RotateImageView;
+import com.android.camera.ui.RotateLayout;
import com.android.camera.ui.SharePopup;
import com.android.camera.ui.ZoomControl;
@@ -180,6 +181,7 @@ public class VideoCamera extends ActivityBase
private boolean mMediaRecorderRecording = false;
private long mRecordingStartTime;
private boolean mRecordingTimeCountsDown = false;
+ private RotateLayout mRecordingTimeRect;
private long mOnResumeTime;
// The video file that the hardware camera is about to record into
// (or is recording into.)
@@ -400,6 +402,7 @@ public class VideoCamera extends ActivityBase
mShutterButton.requestFocus();
mRecordingTimeView = (TextView) findViewById(R.id.recording_time);
+ mRecordingTimeRect = (RotateLayout) findViewById(R.id.recording_time_rect);
mOrientationListener = new MyOrientationEventListener(VideoCamera.this);
mTimeLapseLabel = findViewById(R.id.time_lapse_label);
@@ -525,6 +528,7 @@ public class VideoCamera extends ActivityBase
if (mModePicker != null) mModePicker.setDegree(degree);
if (mSharePopup != null) mSharePopup.setOrientation(degree);
if (mIndicatorControlContainer != null) mIndicatorControlContainer.setDegree(degree);
+ mRecordingTimeRect.setOrientation(mOrientationCompensation);
}
private void startPlayVideoActivity() {