diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java index bed7648a523..e9c5af010af 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java @@ -144,7 +144,7 @@ public class PlatformPlugin { // 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);