diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-11-30 10:12:54 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-11-30 10:12:56 -0800 |
commit | 16d576746d71d91a4a479c51c20bb97f732d5fe1 (patch) | |
tree | 48185506103a5fc4b33952f99a742f19d7b2c146 /src | |
parent | cd1009124c79f6a7edb04cf2c345a8f58982b354 (diff) | |
parent | 14eeb858ed407b9bd1d35ecb2737996523a8e3db (diff) | |
download | android_packages_apps_Snap-16d576746d71d91a4a479c51c20bb97f732d5fe1.tar.gz android_packages_apps_Snap-16d576746d71d91a4a479c51c20bb97f732d5fe1.tar.bz2 android_packages_apps_Snap-16d576746d71d91a4a479c51c20bb97f732d5fe1.zip |
Merge "SnapdraongCamera:Fix CalledFromWrongThreadException" into camera-SnapdragonCamera.lnx.2.0
Diffstat (limited to 'src')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index e4f384cde..cd7956c9e 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -4334,10 +4334,15 @@ public class CaptureModule implements CameraModule, PhotoController, e.printStackTrace(); } if ((!mFrameProcessor.isFrameListnerEnabled() && !startMediaRecorder()) || !mIsRecordingVideo) { - mUI.showUIafterRecording(); releaseMediaRecorder(); - mFrameProcessor.setVideoOutputSurface(null); - restartSession(true); + mHandler.post(new Runnable() { + @Override + public void run() { + mUI.showUIafterRecording(); + mFrameProcessor.setVideoOutputSurface(null); + restartSession(true); + } + }); return; } |