Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmc committed Apr 22, 2024
1 parent c396216 commit 1ae637d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ protected FlutterFragment createFlutterFragment() {
? TransparencyMode.opaque
: TransparencyMode.transparent;
final boolean shouldDelayFirstAndroidViewDraw = renderMode == RenderMode.surface;
final boolean shouldAutomaticallyHandleOnBackPressed = Build.VERSION.SDK_INT >= 33;
final boolean shouldAutomaticallyHandleOnBackPressed = true;

if (getCachedEngineId() != null) {
Log.v(
Expand Down Expand Up @@ -620,12 +620,6 @@ protected void onNewIntent(@NonNull Intent intent) {
super.onNewIntent(intent);
}

@Override
@SuppressWarnings("MissingSuperCall")
public void onBackPressed() {
flutterFragment.onBackPressed();
}

@Override
public void onRequestPermissionsResult(
int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
Expand Down

0 comments on commit 1ae637d

Please sign in to comment.