Skip to content

Commit

Permalink
fix: Update outputs if video stabilization or low-light-boost changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Mar 18, 2024
1 parent 211783a commit 27a4f85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ data class CameraConfiguration(
// outputs
val outputsChanged = left?.photo != right.photo ||
left.video != right.video ||
left.enableLowLightBoost != right.enableLowLightBoost ||
left.videoStabilizationMode != right.videoStabilizationMode ||
left.codeScanner != right.codeScanner ||
left.preview != right.preview ||
left.format != right.format ||
Expand All @@ -98,9 +100,7 @@ data class CameraConfiguration(
// repeating request
val sidePropsChanged = outputsChanged ||
left?.torch != right.torch ||
left.enableLowLightBoost != right.enableLowLightBoost ||
left.zoom != right.zoom ||
left.videoStabilizationMode != right.videoStabilizationMode ||
left.exposure != right.exposure

val isActiveChanged = left?.isActive != right.isActive
Expand Down

0 comments on commit 27a4f85

Please sign in to comment.