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

Commit 0e018f44 authored by Angus Kong's avatar Angus Kong Committed by Android (Google) Code Review
Browse files

Merge "Make stopPreview synchronous." into gb-ub-photos-bryce

parents 7bf0f568 676be54c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -334,8 +334,11 @@ public class CameraManager {
            mCameraHandler.sendEmptyMessage(START_PREVIEW_ASYNC);
        }

        // stopPreview() is synchronous because many resources should be released after
        // the preview is stopped.
        public void stopPreview() {
            mCameraHandler.sendEmptyMessage(STOP_PREVIEW);
            waitDone();
        }

        public void setPreviewCallback(final PreviewCallback cb) {