From a6ca69aa5336f04174ada0be2d4d6d5d07bf6427 Mon Sep 17 00:00:00 2001 From: zakcohen Date: Wed, 12 May 2021 13:55:34 -0700 Subject: [PATCH] Overview - don't update task overlay on thumbnail update. Only init and reset the task overlay on the enabled state of the overlay changing. Previously the overlay was also updated when the thumbnail changed, but this can happen for lots of different reasons so was causing janky transitions and potentially excess work in code that was following the overlay. The overlay code really only cares about the thumbnail after the task has settled, so should be safe to ignore the thumbnail updates. Bug: 188097940 Test: local build and run on p5 Change-Id: I4ad1767046cb0316af19713bc188788d8f581d7c --- .../quickstep/views/TaskThumbnailView.java | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java b/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java index 5b8d4ce471..02888a1f14 100644 --- a/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java +++ b/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java @@ -335,16 +335,13 @@ public class TaskThumbnailView extends View implements PluginListener