Skip to content

Commit 1ae637d

Browse files
committed
1 parent c396216 commit 1ae637d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ protected FlutterFragment createFlutterFragment() {
518518
? TransparencyMode.opaque
519519
: TransparencyMode.transparent;
520520
final boolean shouldDelayFirstAndroidViewDraw = renderMode == RenderMode.surface;
521-
final boolean shouldAutomaticallyHandleOnBackPressed = Build.VERSION.SDK_INT >= 33;
521+
final boolean shouldAutomaticallyHandleOnBackPressed = true;
522522

523523
if (getCachedEngineId() != null) {
524524
Log.v(
@@ -620,12 +620,6 @@ protected void onNewIntent(@NonNull Intent intent) {
620620
super.onNewIntent(intent);
621621
}
622622

623-
@Override
624-
@SuppressWarnings("MissingSuperCall")
625-
public void onBackPressed() {
626-
flutterFragment.onBackPressed();
627-
}
628-
629623
@Override
630624
public void onRequestPermissionsResult(
631625
int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {

0 commit comments

Comments
 (0)