-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[camera_android] Mark description in sendCameraErrorEvent as @NonNull
#7877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[camera_android] Mark description in sendCameraErrorEvent as @NonNull
#7877
Conversation
camsim99
left a comment
There was a problem hiding this 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.
stuartmorgan-g
left a comment
There was a problem hiding this 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.
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
sendCameraErrorEventis package-visible and only called inCamera.javaandCameraTest.java. This should be test- and version-exempt, as it is essentially just an annotation change.Fixes flutter/flutter#156729
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.