Skip to content

Conversation

@yaakovschectman
Copy link
Contributor

sendCameraErrorEvent is package-visible and only called in Camera.java and CameraTest.java. This should be test- and version-exempt, as it is essentially just an annotation change.

Fixes flutter/flutter#156729

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@yaakovschectman yaakovschectman self-assigned this Oct 15, 2024
@yaakovschectman yaakovschectman added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes and removed p: camera platform-android labels Oct 15, 2024
@yaakovschectman yaakovschectman marked this pull request as ready for review October 15, 2024 20:44
Copy link
Contributor

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

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

This looks good to me!

If you think it's helpful, you could add more details about where the CameraAccessExceptions are being thrown in the error message like "CameraAccessException occurred when locking autofocus." but I don't feel strongly either way.

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM. I would also vote for adding some distinguishing text to the message, but the stack trace of the resulting Dart error should give context so it's not a big deal either way.

@yaakovschectman yaakovschectman merged commit f12eda7 into flutter:main Oct 17, 2024
76 checks passed
@yaakovschectman yaakovschectman deleted the camera_android_nullable branch October 17, 2024 16:48
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 17, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 17, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 17, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 17, 2024
flutter/packages@a35f02d...5582669

2024-10-17 [email protected] [two_dimensional_scrollables] Fixes TreeViewNode collapsing not working (flutter/packages#7474)
2024-10-17 [email protected] Revert "[in_app_purchase_storekit] Add support for purchase and transactions #7574" (flutter/packages#7886)
2024-10-17 [email protected] [camera_android] Mark `description` in `sendCameraErrorEvent` as `@NonNull` (flutter/packages#7877)
2024-10-17 [email protected] [image_picker_web] Loosen mime dep to >=1.0.4 <3.0.0 (flutter/packages#7879)
2024-10-17 [email protected] Removing unnecessary parenthesis (flutter/packages#7881)
2024-10-17 [email protected] [in_app_purchase_storekit] Add support for purchase and transactions #7574 (flutter/packages#7812)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: camera platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[camera_android] Make description NonNull in SendCameraErrorEvent.

3 participants