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

Commit fe25a89

Browse files
committed
fix test
1 parent 6b09ef5 commit fe25a89

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

shell/platform/android/io/flutter/embedding/android/FlutterFragmentActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ protected boolean shouldAttachEngineToActivity() {
548548
return true;
549549
}
550550

551-
public boolean shouldHandleDeeplinking() {
551+
protected boolean shouldHandleDeeplinking() {
552552
try {
553553
ActivityInfo activityInfo =
554554
getPackageManager().getActivityInfo(getComponentName(), PackageManager.GET_META_DATA);

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ protected String getInitialRoute() {
119119
protected String getAppBundlePath() {
120120
return "";
121121
}
122+
123+
@Override
124+
protected boolean shouldHandleDeeplinking() {
125+
return false;
126+
}
122127
}
123128

124129
// This is just a compile time check to ensure that it's possible for FlutterFragmentActivity

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void itCreatesNewEngineFragmentWithRequestedSettings() {
5151
assertEquals("/custom/route", fragment.getInitialRoute());
5252
assertArrayEquals(new String[] {}, fragment.getFlutterShellArgs().toArray());
5353
assertFalse(fragment.shouldAttachEngineToActivity());
54-
assertTrue(fragment.shouldAttachEngineToActivity());
54+
assertTrue(fragment.shouldHandleDeeplinking());
5555
assertNull(fragment.getCachedEngineId());
5656
assertTrue(fragment.shouldDestroyEngineWithHost());
5757
assertEquals(RenderMode.texture, fragment.getRenderMode());

0 commit comments

Comments
 (0)