File tree 1 file changed +1
-7
lines changed
shell/platform/android/io/flutter/embedding/android 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -518,7 +518,7 @@ protected FlutterFragment createFlutterFragment() {
518
518
? TransparencyMode .opaque
519
519
: TransparencyMode .transparent ;
520
520
final boolean shouldDelayFirstAndroidViewDraw = renderMode == RenderMode .surface ;
521
- final boolean shouldAutomaticallyHandleOnBackPressed = Build . VERSION . SDK_INT >= 33 ;
521
+ final boolean shouldAutomaticallyHandleOnBackPressed = true ;
522
522
523
523
if (getCachedEngineId () != null ) {
524
524
Log .v (
@@ -620,12 +620,6 @@ protected void onNewIntent(@NonNull Intent intent) {
620
620
super .onNewIntent (intent );
621
621
}
622
622
623
- @ Override
624
- @ SuppressWarnings ("MissingSuperCall" )
625
- public void onBackPressed () {
626
- flutterFragment .onBackPressed ();
627
- }
628
-
629
623
@ Override
630
624
public void onRequestPermissionsResult (
631
625
int requestCode , @ NonNull String [] permissions , @ NonNull int [] grantResults ) {
You can’t perform that action at this time.
0 commit comments