Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9cd2f1a authored by Kerong Sui's avatar Kerong Sui Committed by Steve Kondik
Browse files

Camera: Do not create start preview thread if one thread is alive

It will have exception if two same thread tried to manipulate
same UI component, check the thread status before create a new
one.

Change-Id: I6f9a5c03f46360d15fdcebcd52c48b924f5b42ad
CRs-fixed: 545574
parent 148d371e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -797,7 +797,7 @@ public class VideoModule implements CameraModule,

        showVideoSnapshotUI(false);

        if (!mPreviewing) {
        if (!mPreviewing && mStartPreviewThread == null) {
            resetEffect();
            openCamera();
            if (mActivity.mOpenCameraFail) {