Update the colors for bubbles settings based on new spec
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: I28fa64f8d7b53419a57615bf3da4da7eff049674
This commit is contained in:
@@ -18,9 +18,9 @@
|
|||||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<solid
|
<solid
|
||||||
android:color="?androidprv:attr/materialColorPrimaryContainer" />
|
android:color="?androidprv:attr/materialColorSecondaryContainer" />
|
||||||
<stroke
|
<stroke
|
||||||
android:width="1dp"
|
android:width="1dp"
|
||||||
android:color="?androidprv:attr/materialColorOnPrimaryContainer"/>
|
android:color="?androidprv:attr/materialColorOnSecondaryContainer"/>
|
||||||
<corners android:radius="@dimen/rect_button_radius" />
|
<corners android:radius="@dimen/rect_button_radius" />
|
||||||
</shape>
|
</shape>
|
||||||
|
@@ -168,7 +168,7 @@ public class BubblePreference extends Preference implements View.OnClickListener
|
|||||||
mView.setSelected(selected);
|
mView.setSelected(selected);
|
||||||
|
|
||||||
int colorResId = selected
|
int colorResId = selected
|
||||||
? com.android.internal.R.attr.materialColorOnPrimaryContainer
|
? com.android.internal.R.attr.materialColorOnSecondaryContainer
|
||||||
: com.android.internal.R.attr.materialColorOnSurfaceVariant;
|
: com.android.internal.R.attr.materialColorOnSurfaceVariant;
|
||||||
ColorStateList stateList = Utils.getColorAttr(context, colorResId);
|
ColorStateList stateList = Utils.getColorAttr(context, colorResId);
|
||||||
mImageView.setImageTintList(stateList);
|
mImageView.setImageTintList(stateList);
|
||||||
|
Reference in New Issue
Block a user