diff options
author | Kerong Sui <ksui@codeaurora.org> | 2014-04-08 17:52:03 +0800 |
---|---|---|
committer | Kerong Sui <ksui@codeaurora.org> | 2014-04-08 17:52:03 +0800 |
commit | ea667a61a841c49bf4d7a48909614f22decd2d22 (patch) | |
tree | 064229a1496d235e3337499b169e78fa5e55043f /src/com/android/camera/VideoUI.java | |
parent | dca8ef2341292e40e8a06c5c74a7db1adce83f3d (diff) | |
download | android_packages_apps_Snap-ea667a61a841c49bf4d7a48909614f22decd2d22.tar.gz android_packages_apps_Snap-ea667a61a841c49bf4d7a48909614f22decd2d22.tar.bz2 android_packages_apps_Snap-ea667a61a841c49bf4d7a48909614f22decd2d22.zip |
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
Diffstat (limited to 'src/com/android/camera/VideoUI.java')
-rw-r--r-- | src/com/android/camera/VideoUI.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoUI.java b/src/com/android/camera/VideoUI.java index 8ea709141..bed98edb5 100644 --- a/src/com/android/camera/VideoUI.java +++ b/src/com/android/camera/VideoUI.java @@ -98,6 +98,7 @@ public class VideoUI implements PieRenderer.PieListener, private View mFlashOverlay; private boolean mOrientationResize; private boolean mPrevOrientationResize; + private boolean mIsTimeLapse = false; private View mPreviewCover; private SurfaceView mSurfaceView = null; @@ -550,6 +551,7 @@ public class VideoUI implements PieRenderer.PieListener, if (mTimeLapseLabel != null) { mTimeLapseLabel.setVisibility(enable ? View.VISIBLE : View.GONE); } + mIsTimeLapse = enable; } private void openMenu() { @@ -640,7 +642,7 @@ public class VideoUI implements PieRenderer.PieListener, 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()) { |