summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhuw <zhuw@codeaurora.org>2019-03-21 14:14:34 +0800
committerzhuw <zhuw@codeaurora.org>2019-05-17 18:03:54 +0800
commiteaa8efc86ce4b8cc80c5ecba9f952781b1af2df9 (patch)
tree9e3b75204d5493df494550f6638f70dd46fff2e4
parente7b55c8d6d823d58ea877b8819ed9669eb94034f (diff)
downloadandroid_packages_apps_Snap-eaa8efc86ce4b8cc80c5ecba9f952781b1af2df9.tar.gz
android_packages_apps_Snap-eaa8efc86ce4b8cc80c5ecba9f952781b1af2df9.tar.bz2
android_packages_apps_Snap-eaa8efc86ce4b8cc80c5ecba9f952781b1af2df9.zip
disable settings during recording
don't allow entering settings during recording CRs-Fixed:2425070 Change-Id: I8783ba16448173a1f0f01f5ae44d66aa6d68698c
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java2
-rwxr-xr-xsrc/com/android/camera/CaptureUI.java9
2 files changed, 5 insertions, 6 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index df0f43700..16582a928 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -5345,6 +5345,7 @@ public class CaptureModule implements CameraModule, PhotoController,
if(mFrameProcessor != null) {
mFrameProcessor.onOpen(getFrameProcFilterId(), mPreviewSize);
}
+ mUI.showUIafterRecording();
boolean changed = mUI.setPreviewSize(mPreviewSize.getWidth(), mPreviewSize.getHeight());
if (changed) {
mUI.hideSurfaceView();
@@ -5353,7 +5354,6 @@ public class CaptureModule implements CameraModule, PhotoController,
if (!mPaused) {
createSessions();
}
- mUI.showUIafterRecording();
mUI.resetTrackingFocus();
mStopRecPending = false;
}
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index ce520dd7e..dcfd74b6e 100755
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -246,13 +246,12 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
private void previewUIReady() {
if((mSurfaceHolder != null && mSurfaceHolder.getSurface().isValid())) {
mModule.onPreviewUIReady();
- if ((mIsVideoUI || mModule.getCurrentIntentMode() != CaptureModule.INTENT_MODE_NORMAL)
+ if (mModule.getCurrentIntentMode() != CaptureModule.INTENT_MODE_NORMAL
&& mThumbnail != null){
mThumbnail.setVisibility(View.INVISIBLE);
mThumbnail = null;
mActivity.updateThumbnail(mThumbnail);
- } else if (!mIsVideoUI &&
- mModule.getCurrentIntentMode() == CaptureModule.INTENT_MODE_NORMAL){
+ } else if (mModule.getCurrentIntentMode() == CaptureModule.INTENT_MODE_NORMAL){
if (mThumbnail == null)
mThumbnail = (ImageView) mRootView.findViewById(R.id.preview_thumb);
mActivity.updateThumbnail(mThumbnail);
@@ -766,7 +765,8 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
}
public void openSettingsMenu() {
- if (mPreviewLayout != null && mPreviewLayout.getVisibility() == View.VISIBLE) {
+ if ((mPreviewLayout != null && mPreviewLayout.getVisibility() == View.VISIBLE) ||
+ mIsVideoUI) {
return;
}
clearFocus();
@@ -1913,7 +1913,6 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
mSurfaceView.getHolder().setFixedSize(mPreviewWidth, mPreviewHeight);
mSurfaceView.setAspectRatio(mPreviewHeight, mPreviewWidth);
mSurfaceView.setVisibility(View.VISIBLE);
- mIsVideoUI = false;
}
public boolean setPreviewSize(int width, int height) {