diff --git a/shell/platform/android/io/flutter/embedding/android/FlutterFragment.java b/shell/platform/android/io/flutter/embedding/android/FlutterFragment.java index 35ce809a4939d..57b25707bf340 100644 --- a/shell/platform/android/io/flutter/embedding/android/FlutterFragment.java +++ b/shell/platform/android/io/flutter/embedding/android/FlutterFragment.java @@ -442,12 +442,16 @@ protected FlutterView.TransparencyMode getTransparencyMode() { return FlutterView.TransparencyMode.valueOf(transparencyModeName); } + @Override + public void onResume() { + super.onResume(); + flutterEngine.getLifecycleChannel().appIsResumed(); + } + // TODO(mattcarroll): determine why this can't be in onResume(). Comment reason, or move if possible. public void onPostResume() { Log.d(TAG, "onPostResume()"); if (flutterEngine != null) { - flutterEngine.getLifecycleChannel().appIsResumed(); - // TODO(mattcarroll): find a better way to handle the update of UI overlays than calling through // to platformPlugin. We're implicitly entangling the Window, Activity, Fragment, // and engine all with this one call.