Fix colors in bubble settings so they're more visible
Test: manual - get a bubble, go to that apps bubble settings screen, observe the colors look correct, switch theme and check again. Bug: 283951560 Change-Id: I361b1c20e293c02b4d604e0b5845a074c31e5103
This commit is contained in:
@@ -167,9 +167,10 @@ public class BubblePreference extends Preference implements View.OnClickListener
|
||||
: R.drawable.button_border_unselected));
|
||||
mView.setSelected(selected);
|
||||
|
||||
ColorStateList stateList = selected
|
||||
? Utils.getColorAccent(context)
|
||||
: Utils.getColorAttr(context, android.R.attr.textColorPrimary);
|
||||
int colorResId = selected
|
||||
? com.android.internal.R.attr.materialColorOnPrimaryContainer
|
||||
: com.android.internal.R.attr.materialColorOnSurfaceVariant;
|
||||
ColorStateList stateList = Utils.getColorAttr(context, colorResId);
|
||||
mImageView.setImageTintList(stateList);
|
||||
mTextView.setTextColor(stateList);
|
||||
}
|
||||
|
Reference in New Issue
Block a user