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

Commit ebe386b

Browse files
committed
Fix test
1 parent 9aa31cd commit ebe386b

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
@@ -19,6 +19,7 @@
1919
import android.graphics.Insets;
2020
import android.media.Image;
2121
import android.media.ImageReader;
22+
import android.view.DisplayCutout;
2223
import android.view.View;
2324
import android.view.ViewGroup;
2425
import android.view.WindowInsets;
@@ -520,8 +521,8 @@ public void systemInsetDisplayCutoutSimple() {
520521
when(windowInsets.getSystemWindowInsetLeft()).thenReturn(-1);
521522
when(windowInsets.getSystemWindowInsetRight()).thenReturn(-1);
522523
when(windowInsets.getInsets(anyInt())).thenReturn(insets);
523-
when(windowInsets.getSystemGestureInsets(anyInt())).thenReturn(systemGestureInsets);
524-
when(windowInsets.getCutout()).thenReturn(displayCutout);
524+
when(windowInsets.getSystemGestureInsets()).thenReturn(systemGestureInsets);
525+
when(windowInsets.getDisplayCutout()).thenReturn(displayCutout);
525526

526527
Insets waterfallInsets = Insets.of(200, 0, 200, 0);
527528
when(displayCutout.getWaterfallInsets()).thenReturn(waterfallInsets);

0 commit comments

Comments
 (0)