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

Commit 6faf98e2 authored by Ruben Brunk's avatar Ruben Brunk
Browse files

camera: Start/stop preview before clearing surface.

- Works around HAL issues where preview must be
  explicitely stopped after takePicture call before
  the surface can be reset.

Bug: 20553124
Change-Id: I403d8c09dfee0cd192d4831376f9f8ed3d6ba444
parent 712aa629
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -326,6 +326,9 @@ public class RequestThreadManager {
        }

        try {
            startPreview(); // If preview is not running (i.e. after a JPEG capture), we need to
                            // explicitely start and stop preview before setting preview surface.
                            // null.
            stopPreview();
        }  catch (RuntimeException e) {
            Log.e(TAG, "Received device exception in configure call: ", e);