From d2eb55d0982c7408153b890d69e267a930b30562 Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Tue, 3 Oct 2017 15:17:16 -0700 Subject: [PATCH] Fixes rounded corners for clear all button on low ram devices Fixed rounded corners for clear all button by using a themed background color on a shape with rounded corners instead of programmatically changing the background color. Change-Id: Iaaf4f0d94d417b0064c7e6bf4895b49d9fa6561f Fixes: 67368134 Test: manual - go to recents and scroll up to show clear all button --- .../SystemUI/res/drawable/recents_low_ram_stack_button_background.xml | 2 +- .../SystemUI/src/com/android/systemui/recents/views/RecentsView.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/SystemUI/res/drawable/recents_low_ram_stack_button_background.xml b/packages/SystemUI/res/drawable/recents_low_ram_stack_button_background.xml index db2eb3a27455..bff97f6f8fe4 100644 --- a/packages/SystemUI/res/drawable/recents_low_ram_stack_button_background.xml +++ b/packages/SystemUI/res/drawable/recents_low_ram_stack_button_background.xml @@ -17,6 +17,6 @@ - + diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java index 4a11fd05664d..f38420e686ab 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java @@ -203,10 +203,6 @@ public class RecentsView extends FrameLayout { mStackButtonShadowDistance.x, mStackButtonShadowDistance.y, mStackButtonShadowColor); } - if (Recents.getConfiguration().isLowRamDevice) { - int bgColor = Utils.getColorAttr(mContext, R.attr.clearAllBackgroundColor); - mStackActionButton.setBackgroundColor(bgColor); - } } // Let's also require dark status and nav bars if the text is dark -- 2.11.0