summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-11-30 10:12:54 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-11-30 10:12:56 -0800
commit16d576746d71d91a4a479c51c20bb97f732d5fe1 (patch)
tree48185506103a5fc4b33952f99a742f19d7b2c146 /src
parentcd1009124c79f6a7edb04cf2c345a8f58982b354 (diff)
parent14eeb858ed407b9bd1d35ecb2737996523a8e3db (diff)
downloadandroid_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-xsrc/com/android/camera/CaptureModule.java11
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;
}