diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-07-18 23:52:05 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-07-18 23:52:05 -0700 |
commit | 5bb5926087b17eacca729cfd8c378d6e8c67f631 (patch) | |
tree | 7dae947a922ed5735a888181ea6c1d1bfd48d767 | |
parent | e453ddc6aee7c4d686acc8fabc60960c16fa66c5 (diff) | |
parent | d896e925c8f759f0c483a527cf6f66ee201bee87 (diff) | |
download | android_packages_apps_Snap-5bb5926087b17eacca729cfd8c378d6e8c67f631.tar.gz android_packages_apps_Snap-5bb5926087b17eacca729cfd8c378d6e8c67f631.tar.bz2 android_packages_apps_Snap-5bb5926087b17eacca729cfd8c378d6e8c67f631.zip |
Merge "SnapdragonCamera:Fix recording state"
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 76a524239..34686e58f 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -3923,6 +3923,7 @@ public class CaptureModule implements CameraModule, PhotoController, } Log.d(TAG, "StartRecordingVideo " + cameraId); mStartRecPending = true; + mIsRecordingVideo = true; mMediaRecorderPausing = false; checkAndPlayRecordSound(cameraId, true); @@ -4076,6 +4077,7 @@ public class CaptureModule implements CameraModule, PhotoController, e.printStackTrace(); quitRecordingWithError("NullPointException"); } + mStartRecPending = false; return true; } @@ -4107,9 +4109,6 @@ public class CaptureModule implements CameraModule, PhotoController, requestAudioFocus(); try { mMediaRecorder.start(); // Recording is now started - mIsRecordingVideo = true; - mStartRecPending = false; - Log.d(TAG, "StartRecordingVideo done."); } catch (RuntimeException e) { Toast.makeText(mActivity,"Could not start media recorder.\n " + "Can't start video recording.", Toast.LENGTH_LONG).show(); |