From 895f57f610e40b4ef05da64667742190ef3450aa Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 22 Apr 2020 20:10:25 -0700 Subject: [PATCH] Bound the thumbnail insets to the launcher insets - We currently end up using the launcher insets when swiping up into overview due to how we scale the target rect to the source bounds, but the thumbnail crop is calculated only from the task thumbnail insets. For apps that are letterboxed, this results in a jump after the transition completes when we crop too far (including the letterbox) and end up showing the task background. For now, since we are just cropping by the launcher insets, we can also take the min of those and the thumbnail insets to calculate the thumbnail view crop. Bug: 151770104 Test: Test swiping up with a normal app, a letterboxed app (like authenticator), an app that has no insets (like Change-Id: I08342b19c54f9078be4613fca9024e2558403bc9 --- .../quickstep/views/TaskThumbnailView.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 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 aa08e86f22..b837a21d5d 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 @@ -195,11 +195,6 @@ public class TaskThumbnailView extends View implements PluginListener