Reset mCurrentVideoUri to null before starting recording.
While running monkey, we encountered a usecase where Video Recording is inProgress and an
intent to launch Panorama Activity came in. While switching StopVideoRecording failed and
resulted in Camera Exception (observed 3 times in 2 weeks of testing). mCurrentVideoUri
is not cleared, so the thumbnail of the last video is re-generated, which can take 3
seconds.
bug:5596264
Change-Id: Ie14c426c81c46f2d9a6741b6213cf66b1dbb5612
Signed-off-by: Braganza Sam Roberts<sam.braganza@samsung.com>
Signed-off-by: Heechan Park <heech.park@samsung.com>
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index 75cba44..fad9094 100755
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -1540,6 +1540,7 @@
return;
}
+ mCurrentVideoUri = null;
if (effectsActive()) {
initializeEffectsRecording();
if (mEffectsRecorder == null) {