diff --git a/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java b/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java index bed7648a52344..e9c5af010afb0 100644 --- a/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java +++ b/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java @@ -144,7 +144,7 @@ private void setSystemChromeApplicationSwitcherDescription(PlatformChannel.AppSw // Linter refuses to believe we're only executing this code in API 28 unless we use distinct if blocks and // hardcode the API 28 constant. if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P && Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) { - activity.setTaskDescription(new TaskDescription(description.label)); + activity.setTaskDescription(new TaskDescription(description.label, /*icon=*/ null, description.color)); } if (Build.VERSION.SDK_INT >= 28) { TaskDescription taskDescription = new TaskDescription(description.label, 0, description.color);