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
This commit is contained in:
Matthew Ng
2017-10-03 15:17:16 -07:00
parent b986ebce75
commit d2eb55d098
2 changed files with 1 additions and 5 deletions

View File

@@ -17,6 +17,6 @@
<corners android:radius="@dimen/borderless_button_radius" />
<solid android:color="#CC000000" />
<solid android:color="?attr/clearAllBackgroundColor" />
</shape>

View File

@@ -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