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

Commit 3408eb4

Browse files
author
Emmanuel Garcia
committed
Clean up
1 parent 9bbbe16 commit 3408eb4

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ public void detach__destroysOverlaySurfaces() {
601601
final FlutterImageView overlayImageView = mock(FlutterImageView.class);
602602
when(overlayImageView.acquireLatestImage()).thenReturn(true);
603603

604-
platformViewsController.createOverlaySurface(overlayImageView);
605-
604+
final FlutterOverlaySurface overlaySurface =
605+
platformViewsController.createOverlaySurface(overlayImageView);
606606
// This is OK.
607607
platformViewsController.onDisplayOverlaySurface(
608608
overlaySurface.getId(), /* x=*/ 0, /* y=*/ 0, /* width=*/ 10, /* height=*/ 10);

testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenariosui/MemoryLeakTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
@RunWith(AndroidJUnit4.class)
1818
@LargeTest
1919
public class MemoryLeakTests {
20-
2120
@Rule
2221
public ActivityTestRule<TextPlatformViewActivity> activityRule =
2322
new ActivityTestRule<>(
@@ -30,6 +29,6 @@ public void platformViewHybridComposition_launchActivityFinishAndLaunchAgain() t
3029
intent.putExtra("scenario", "platform_view");
3130
intent.putExtra("use_android_view", true);
3231

33-
TextPlatformViewActivity activity = activityRule.launchActivity(intent);
32+
activityRule.launchActivity(intent);
3433
}
3534
}

0 commit comments

Comments
 (0)