Skip to content

Commit

Permalink
Merge "Report camera state as CLOSING for runtime errors" into androi…
Browse files Browse the repository at this point in the history
…dx-main
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Nov 11, 2024
2 parents ff2f474 + 7e1657a commit 8093686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,6 @@ void setState(@NonNull InternalState state, @Nullable CameraState.StateError sta
State publicState;
switch (state) {
case INITIALIZED:
case OPENING_WITH_ERROR:
publicState = State.CLOSED;
break;
case PENDING_OPEN:
Expand All @@ -1991,6 +1990,7 @@ void setState(@NonNull InternalState state, @Nullable CameraState.StateError sta
break;
case CLOSING:
case REOPENING_QUIRK:
case OPENING_WITH_ERROR:
publicState = State.CLOSING;
break;
case RELEASING:
Expand Down

0 comments on commit 8093686

Please sign in to comment.