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

Commit 9db46712 authored by Mady Mellor's avatar Mady Mellor Committed by Automerger Merge Worker
Browse files

Merge "Update the colors for bubbles settings based on new spec" into udc-dev am: 57406435

parents 86f36a03 57406435
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);