pull/696/head
Mattia Iavarone 6 years ago
parent c088ed4252
commit c4ae4bf006
  1. 1
      .github/workflows/build.yml
  2. 1
      cameraview/src/main/java/com/otaliastudios/cameraview/engine/Camera2Engine.java
  3. 2
      cameraview/src/main/java/com/otaliastudios/cameraview/engine/orchestrator/CameraStateOrchestrator.java

@ -1,4 +1,5 @@
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# Renaming ? Change the README badge.
name: Build
on:
push:

@ -327,6 +327,7 @@ public class Camera2Engine extends CameraEngine implements ImageReader.OnImageAv
@EngineThread
@Override
protected void onPreviewStreamSizeChanged() {
LOG.i("onPreviewStreamSizeChanged:", "Calling restartBind().");
restartBind();
}

@ -55,7 +55,7 @@ public class CameraStateOrchestrator extends CameraOrchestrator {
mTargetState = toState;
final boolean isTearDown = !toState.isAtLeast(fromState);
final String name = isTearDown ? toState.name() + " << " + fromState.name()
final String name = isTearDown ? fromState.name() + " << " + toState.name()
: fromState.name() + " >> " + toState.name();
return schedule(name, dispatchExceptions, new Callable<Task<Void>>() {
@Override

Loading…
Cancel
Save