You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[camera_android_camerax][video_player_android] Suppresses deprecation of the SurfaceProducer.Callback.onSurfaceDestroyed method (flutter#8388)
See flutter/flutter#161256
This was causing errors with the Flutter->Packages roller:
```
> Task :camera_android_camerax:compileDebugJavaWithJavac
/b/s/w/ir/x/w/packages/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/PreviewHostApiImpl.java:92: warning: [removal] onSurfaceDestroyed() in Callback has been deprecated and marked for removal
public void onSurfaceDestroyed() {
^
error: warnings found and -Werror specified
1 error
1 warning
```
Copy file name to clipboardExpand all lines: packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/PreviewHostApiImpl.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,9 @@ public void onSurfaceAvailable() {
89
89
}
90
90
91
91
@Override
92
+
// TODO(bparrishMines): Replace with onSurfaceCleanup once available on stable. See
Copy file name to clipboardExpand all lines: packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,9 @@ public void onSurfaceAvailable() {
94
94
}
95
95
96
96
@RestrictTo(RestrictTo.Scope.LIBRARY)
97
+
// TODO(bparrishMines): Replace with onSurfaceCleanup once available on stable. See
0 commit comments