diff --git a/packages/SystemUI/res/values/attrs.xml b/packages/SystemUI/res/values/attrs.xml index 745d6015d0ffa..a923f0b8c3320 100644 --- a/packages/SystemUI/res/values/attrs.xml +++ b/packages/SystemUI/res/values/attrs.xml @@ -34,6 +34,7 @@ + diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index f72f3794e8081..f244d88b8573f 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -60,6 +60,11 @@ #33FFFFFF + + #CCFFFFFF + + #CC000000 + #ffffffff diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 2199fffa4bbe9..90c5977e2a673 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -34,11 +34,13 @@ true true @style/ClearAllButtonDefaultMargins + @color/recents_clear_all_button_bg_dark_color @*android:color/primary_text_material_dark @*android:color/secondary_text_material_dark 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 71f06cbf6e64b..09e712cc0ebcc 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java @@ -205,6 +205,10 @@ 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