From cb8a7fe742fddb88013cacb2cc8e195d04c09fc4 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 5 Jun 2020 16:13:49 -0700 Subject: [PATCH] Ensure that the default fullscreen params have a corner radius - Until we update the fullscreen params, the tmp params have no radius so in cases where a new task is created while overview is open, or if we go to overview from home immediately after starting launcher for the first time, there would be no corners Bug: 158050383 Test: Kill launcher, swipe up to overview, ensure tasks have corner radius (if device supports it) Change-Id: I6b72c1a401b9203da3acffc88578c1ed743c8f68 --- .../com/android/quickstep/views/TaskThumbnailView.java | 10 ++++++---- .../src/com/android/quickstep/views/TaskView.java | 4 ---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java index 3299736a26..ead0c8b909 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java @@ -45,6 +45,7 @@ import com.android.launcher3.DeviceProfile; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.uioverrides.plugins.PluginManagerWrapper; +import com.android.launcher3.util.MainThreadInitializedObject; import com.android.launcher3.util.SystemUiController; import com.android.launcher3.util.Themes; import com.android.quickstep.TaskOverlayFactory; @@ -63,9 +64,9 @@ public class TaskThumbnailView extends View implements PluginListener TEMP_PARAMS = + new MainThreadInitializedObject<>(FullscreenDrawParams::new); public static final Property DIM_ALPHA = new FloatProperty("dimAlpha") { @@ -91,8 +92,7 @@ public class TaskThumbnailView extends View implements PluginListener