Do not allow navigation to filmstrip during video recording
Bug: 11064867
Change-Id: I168136a193008578b3ad2642cba764650bcc2487
diff --git a/src/com/android/camera/VideoUI.java b/src/com/android/camera/VideoUI.java
index 464cf0e..d255ed7 100644
--- a/src/com/android/camera/VideoUI.java
+++ b/src/com/android/camera/VideoUI.java
@@ -85,6 +85,7 @@
private View mMenuButton;
private OnScreenIndicators mOnScreenIndicators;
private RotateLayout mRecordingTimeRect;
+ private boolean mRecordingStarted = false;
private SurfaceTexture mSurfaceTexture;
private VideoController mController;
private int mZoomMax;
@@ -431,7 +432,10 @@
mPreviewThumb.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
- mActivity.gotoGallery();
+ // Do not allow navigation to filmstrip during video recording
+ if (!mRecordingStarted) {
+ mActivity.gotoGallery();
+ }
}
});
}
@@ -550,7 +554,8 @@
mController.onSingleTapUp(view, x, y);
}
- public void showRecordingUI(boolean recording, boolean zoomSupported) {
+ public void showRecordingUI(boolean recording) {
+ mRecordingStarted = recording;
mMenuButton.setVisibility(recording ? View.GONE : View.VISIBLE);
mOnScreenIndicators.setVisibility(recording ? View.GONE : View.VISIBLE);
if (recording) {