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:
Mady Mellor
2023-06-08 13:12:26 -07:00
parent 8a47899369
commit fb1e921bd9
2 changed files with 3 additions and 3 deletions

View File

@@ -18,9 +18,9 @@
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:shape="rectangle">
<solid
android:color="?androidprv:attr/materialColorPrimaryContainer" />
android:color="?androidprv:attr/materialColorSecondaryContainer" />
<stroke
android:width="1dp"
android:color="?androidprv:attr/materialColorOnPrimaryContainer"/>
android:color="?androidprv:attr/materialColorOnSecondaryContainer"/>
<corners android:radius="@dimen/rect_button_radius" />
</shape>

View File

@@ -168,7 +168,7 @@ public class BubblePreference extends Preference implements View.OnClickListener
mView.setSelected(selected);
int colorResId = selected
? com.android.internal.R.attr.materialColorOnPrimaryContainer
? com.android.internal.R.attr.materialColorOnSecondaryContainer
: com.android.internal.R.attr.materialColorOnSurfaceVariant;
ColorStateList stateList = Utils.getColorAttr(context, colorResId);
mImageView.setImageTintList(stateList);