Skip to content

Commit c3787ff

Browse files
[camera_android_camerax] Remove nonnull annotation from getDefaultPointSize (flutter#8292)
The primitive float type cannot be null, so the annotation is meaningless. - [NA] I [linked to at least one issue that this PR fixes] in the description above. - [NA] I added new tests to check the change I am making, or this PR is [test-exempt].
1 parent 563dd2c commit c3787ff

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

packages/camera/camera_android_camerax/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.10+1
2+
3+
* Removes nonnull annotation from MeteringPointHostApiImpl#getDefaultPointSize.
4+
15
## 0.6.10
26

37
* Removes logic that explicitly removes `READ_EXTERNAL_STORAGE` permission that may be implied

packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/MeteringPointHostApiImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public DisplayOrientedMeteringPointFactory getDisplayOrientedMeteringPointFactor
8383
* Returns the default point size of the {@link MeteringPoint} width and height, which is a
8484
* normalized percentage of the sensor width/height.
8585
*/
86-
@NonNull
8786
public float getDefaultPointSize() {
8887
return MeteringPointFactory.getDefaultPointSize();
8988
}

packages/camera/camera_android_camerax/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera_android_camerax
22
description: Android implementation of the camera plugin using the CameraX library.
33
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_android_camerax
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
5-
version: 0.6.10
5+
version: 0.6.10+1
66

77
environment:
88
sdk: ^3.5.0

0 commit comments

Comments
 (0)