Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9bbbe16

Browse files
author
Emmanuel Garcia
committed
contains -> get
1 parent cdac5ea commit 9bbbe16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ public void onDisplayPlatformView(
762762
}
763763

764764
public void onDisplayOverlaySurface(int id, int x, int y, int width, int height) {
765-
if (!overlayLayerViews.contains(id)) {
765+
if (overlayLayerViews.get(id) == null) {
766766
throw new IllegalStateException("The overlay surface (id:" + id + ") doesn't exist");
767767
}
768768
initializeRootImageViewIfNeeded();

0 commit comments

Comments
 (0)