File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
shell/platform/android/io/flutter/embedding/android Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments