Camera2: remove the pause button when timelapse is on
Camcorder will crash when pause and continu in timelapse mode.remove
this feature for timelapse mode.
Change-Id: Ia81a11c7879286aafec0f38cb2a485e0f7f6fb68
CRs-fixed: 630780
diff --git a/src/com/android/camera/VideoUI.java b/src/com/android/camera/VideoUI.java
index 8ea7091..bed98ed 100644
--- a/src/com/android/camera/VideoUI.java
+++ b/src/com/android/camera/VideoUI.java
@@ -98,6 +98,7 @@
private View mFlashOverlay;
private boolean mOrientationResize;
private boolean mPrevOrientationResize;
+ private boolean mIsTimeLapse = false;
private View mPreviewCover;
private SurfaceView mSurfaceView = null;
@@ -550,6 +551,7 @@
if (mTimeLapseLabel != null) {
mTimeLapseLabel.setVisibility(enable ? View.VISIBLE : View.GONE);
}
+ mIsTimeLapse = enable;
}
private void openMenu() {
@@ -640,7 +642,7 @@
hideSwitcher();
mRecordingTimeView.setText("");
mRecordingTimeView.setVisibility(View.VISIBLE);
- mPauseButton.setVisibility(View.VISIBLE);
+ mPauseButton.setVisibility(mIsTimeLapse ? View.GONE : View.VISIBLE);
} else {
mShutterButton.setImageResource(R.drawable.btn_new_shutter_video);
if (!mController.isVideoCaptureIntent()) {