Fix tokens for App Contrast Pill
Bug: 397101795 Test: update screenshots Flag: com.android.launcher3.enable_contrast_tiles Change-Id: Iffe86d8b1bdebbf8ddab9dcfd6197ad24edb684f
This commit is contained in:
1 parent
aee4b11336
commit
d4cce41c27
2 files changed
+10
-12
No files matched your search
@@ -961,11 +961,14 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
|
||||
@Override
|
||||
public void setTextColor(ColorStateList colors) {
|
||||
mTextColor = (shouldDrawAppContrastTile() && !TextUtils.isEmpty(getText()))
|
||||
? PillColorProvider.getInstance(
|
||||
getContext()).getAppTitleTextPaint().getColor()
|
||||
: colors.getDefaultColor();
|
||||
mTextColorStateList = colors;
|
||||
if (shouldDrawAppContrastTile()) {
|
||||
mTextColor = PillColorProvider.getInstance(
|
||||
getContext()).getAppTitleTextPaint().getColor();
|
||||
} else {
|
||||
mTextColor = colors.getDefaultColor();
|
||||
mTextColorStateList = colors;
|
||||
}
|
||||
|
||||
if (Float.compare(mTextAlpha, 1) == 0) {
|
||||
super.setTextColor(colors);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user