From 5fee81233b547ff3b08ddda368c28a1a24ee601f Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Wed, 7 Apr 2021 20:49:34 +0100 Subject: [PATCH] Calculate ClearAllButton's scroll offset after it's laid out - ClearAllButton's width is 0 before it's laid out, making the calcualtion incorrect Bug: 184570027 Test: Restart device or change screen size, ClearAllButton is in correct position Change-Id: I2cefccbe18925cb3d9dac705b333400639b7049e --- .../src/com/android/quickstep/views/RecentsView.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 66d621e1f1..c39e7df8c6 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1228,11 +1228,6 @@ public abstract class RecentsView