Skip to content

Remove DisableAutoCancel to fix Android auto focus#2169

Merged
TheCodeTraveler merged 2 commits into
CommunityToolkit:mainfrom
Jake-Derrick:bug/cameraview-android-autofocus
Sep 3, 2024
Merged

Remove DisableAutoCancel to fix Android auto focus#2169
TheCodeTraveler merged 2 commits into
CommunityToolkit:mainfrom
Jake-Derrick:bug/cameraview-android-autofocus

Conversation

@Jake-Derrick
Copy link
Copy Markdown
Contributor

@Jake-Derrick Jake-Derrick commented Sep 3, 2024

Description of Change

Remove the use of DisableAutoCancel to allow CameraX to automatically cancel focus and metering actions after the default duration, enabling continuous auto-focus behavior rather than being locked into the initial focal point.

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal)
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Documentation created or updated:

Additional information

See #2103 (comment) for video example

@Jake-Derrick
Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

Copy link
Copy Markdown
Contributor

@bijington bijington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Jake-Derrick I appreciate this!

@bijington
Copy link
Copy Markdown
Contributor

Looks like we still have flaky tests :(

@TheCodeTraveler TheCodeTraveler enabled auto-merge (squash) September 3, 2024 19:11
@TheCodeTraveler TheCodeTraveler merged commit 3da6d2e into CommunityToolkit:main Sep 3, 2024
@Jake-Derrick Jake-Derrick deleted the bug/cameraview-android-autofocus branch September 3, 2024 19:21
@AlejandroHV
Copy link
Copy Markdown

Thank you @Jake-Derrick

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Camera View control is not refocusing on Android.

4 participants