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

Commit 6d8a97e1 authored by Igor Murashkin's avatar Igor Murashkin
Browse files

camera2: (LEGACY) Don't stop preview when there are no requests left

* This allows flash mode=TORCH to keep working if only a single
request is submitted and the device goes to the idle state.

Bug: 16305644
Change-Id: Id2e3451f85dbf9b545d3a70977b8fcfb0922a0eb
parent 98f8530a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -607,7 +607,6 @@ public class RequestThreadManager {
                            Log.e(TAG, "Interrupted while waiting for requests to complete.");
                        }
                        mDeviceState.setIdle();
                        stopPreview();
                        break;
                    } else {
                        // Queue another capture if we did not get the last burst.