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

Commit 88e279f

Browse files
committed
Fix test
1 parent b3cc87f commit 88e279f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

shell/platform/android/test/io/flutter/embedding/android/FlutterViewTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import android.media.Image;
2323
import android.media.Image.Plane;
2424
import android.media.ImageReader;
25+
import android.view.DisplayCutout;
2526
import android.view.View;
2627
import android.view.ViewGroup;
2728
import android.view.WindowInsets;
@@ -523,8 +524,8 @@ public void systemInsetDisplayCutoutSimple() {
523524
when(windowInsets.getSystemWindowInsetLeft()).thenReturn(-1);
524525
when(windowInsets.getSystemWindowInsetRight()).thenReturn(-1);
525526
when(windowInsets.getInsets(anyInt())).thenReturn(insets);
526-
when(windowInsets.getSystemGestureInsets(anyInt())).thenReturn(systemGestureInsets);
527-
when(windowInsets.getCutout()).thenReturn(displayCutout);
527+
when(windowInsets.getSystemGestureInsets()).thenReturn(systemGestureInsets);
528+
when(windowInsets.getDisplayCutout()).thenReturn(displayCutout);
528529

529530
Insets waterfallInsets = Insets.of(200, 0, 200, 0);
530531
when(displayCutout.getWaterfallInsets()).thenReturn(waterfallInsets);

0 commit comments

Comments
 (0)