Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb1e921b authored by Mady Mellor's avatar Mady Mellor
Browse files

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
parent 8a478993
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -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);