From 1287feb61659bc28027168ae4da4da21eb5d0415 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Mon, 1 Jun 2020 18:15:28 -0500 Subject: [PATCH] Update TaskView fullscreen params when updating the thumbnail matrix Previously, we were only updating the fullscreen params when updating fullscreen progress. The problem with that is we optimize to skip updating fullscreen progress if the new progress is the same as the current. But since the fullscreen params depend on the insets computed by the preview position helper, we should update the fullscreen params when we update the preview position helper. Test: force stop launcher, quick switch directly to the right, ensure the adjacent TaskView has its insets applied properly Bug: 157105795 Change-Id: I3c3b47c69205607c9e10ed38c403211816f30939 --- .../android/quickstep/views/TaskThumbnailView.java | 1 + .../src/com/android/quickstep/views/TaskView.java | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 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 78ac1ccfe1..e224eabd0d 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 @@ -357,6 +357,7 @@ public class TaskThumbnailView extends View implements PluginListener