Enable abortCaptures()

pull/716/head
Mattia Iavarone 6 years ago
parent db93cce7d7
commit 51f9a75477
  1. 2
      cameraview/src/main/java/com/otaliastudios/cameraview/engine/Camera2Engine.java

@ -665,7 +665,7 @@ public class Camera2Engine extends CameraBaseEngine implements
}
// Removing the part below for now. It hangs on emulators and can take a lot of time
// in real devices, for benefits that I'm not 100% sure about.
if (false) {
if (true) {
try {
// Preferring abortCaptures() over stopRepeating(): it makes sure that all
// in-flight operations are discarded as fast as possible, which is what we want.

Loading…
Cancel
Save