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

Commit c324b51

Browse files
committed
Makes | platformViewId | large enough to require a long.
1 parent 9f7ba0c commit c324b51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/platform/android/test/io/flutter/plugin/platform/PlatformViewsControllerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ public void getPlatformViewById_hybridComposition() {
323323
public void createPlatformViewMessage_initializesAndroidView() {
324324
PlatformViewsController platformViewsController = new PlatformViewsController();
325325

326-
final long platformViewId = 0L;
326+
// The value is actually large enough to require a long.
327+
final long platformViewId = 0x80000000L;
327328
assertNull(platformViewsController.getPlatformViewById(platformViewId));
328329

329330
PlatformViewFactory viewFactory = mock(PlatformViewFactory.class);

0 commit comments

Comments
 (0)