diff options
author | Andreas Huber <> | 2009-03-24 20:12:48 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-24 20:12:48 -0700 |
commit | 314f9a79f1395af71f2c2bb629435bfda07a55ae (patch) | |
tree | 2599240a696a00b7c4979c18a4e9451c549caa15 /src | |
parent | 07c90568c7b0568e6cb75559bd13e5d000ac040f (diff) | |
download | LegacyCamera-314f9a79f1395af71f2c2bb629435bfda07a55ae.zip LegacyCamera-314f9a79f1395af71f2c2bb629435bfda07a55ae.tar.gz LegacyCamera-314f9a79f1395af71f2c2bb629435bfda07a55ae.tar.bz2 |
Automated import from //branches/donutburger/...@141400,141400
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 11d1a4e..7f1b010 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -540,6 +540,16 @@ public class VideoCamera extends Activity implements View.OnClickListener, } public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { + if (mPausing) { + // We're pausing, the screen is off and we already stopped + // video recording. We don't want to start the camera again + // in this case in order to conserve power. + // The fact that surfaceChanged is called _after_ an onPause appears + // to be legitimate since in that case the lockscreen always returns + // to portrait orientation possibly triggering the notification. + return; + } + stopVideoRecording(); initializeVideo(); } |