From 722c7f3f0304a99d5de4645039d2ef94144c0841 Mon Sep 17 00:00:00 2001 From: Fei Zhang Date: Thu, 10 Apr 2014 15:36:22 +0800 Subject: Camera2: wait for previous saving picture done during panorama capture If saving pano picture thread is still running during onResume, we need to wait until it completes. CRs-fixed: 637244 Change-Id: I9ae5cb75a930421325d2e7d4d1b30306c867c6cf --- src/com/android/camera/WideAnglePanoramaModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com') diff --git a/src/com/android/camera/WideAnglePanoramaModule.java b/src/com/android/camera/WideAnglePanoramaModule.java index d8d980533..bae41f7c1 100644 --- a/src/com/android/camera/WideAnglePanoramaModule.java +++ b/src/com/android/camera/WideAnglePanoramaModule.java @@ -894,7 +894,7 @@ public class WideAnglePanoramaModule // Check if another panorama instance is using the mosaic frame processor. mUI.dismissAllDialogs(); - if (!mThreadRunning && mMosaicFrameProcessor.isMosaicMemoryAllocated()) { + if (mThreadRunning && mMosaicFrameProcessor.isMosaicMemoryAllocated()) { mUI.showWaitingDialog(mDialogWaitingPreviousString); // If stitching is still going on, make sure switcher and shutter button // are not showing -- cgit v1.2.3