From fd968a79a89e1762f048cf1f6855be6351c3c559 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 10 May 2019 15:57:10 -0700 Subject: [PATCH] Scale down thumbnail with app surface The recents Go app to overview transition has app scale down to a thumbnail but normally covers the thumbnail. However, apps with transparency will be semi-visible and will allow the user to see the thumbnail in the back at its final size. Instead, we should fit the thumbnail to the surface so that they both scale down at the same time. Bug: 132458092 Test: Go to app with transparency, scale down Change-Id: Iaebeaaf2ddcfc86fd4f55ef9d8c3f19583947c48 --- go/quickstep/res/layout/task_item_view.xml | 3 +- .../quickstep/views/IconRecentsView.java | 42 +++++++++++++++++-- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/go/quickstep/res/layout/task_item_view.xml b/go/quickstep/res/layout/task_item_view.xml index 699178d57f..ab2cf2804b 100644 --- a/go/quickstep/res/layout/task_item_view.xml +++ b/go/quickstep/res/layout/task_item_view.xml @@ -18,7 +18,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="@dimen/task_item_height" - android:orientation="horizontal"> + android:orientation="horizontal" + android:clipChildren="false">