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

Commit f6267d46 authored by Peter_Liang's avatar Peter_Liang
Browse files

Fix the inconsistent background color between the tooltip and arrow.

Solution:
Dynamically update the background color again.

Bug: 186370178
Test: manual test
Change-Id: I203a32d54a252db52d57d4f6ed0c16a32e22ba2f
parent 75dc1f16
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -214,6 +214,8 @@ class BaseTooltipView extends FrameLayout {

        final GradientDrawable gradientDrawable = (GradientDrawable) mTextView.getBackground();
        gradientDrawable.setCornerRadius(mTextViewCornerRadius);
        gradientDrawable.setColor(Utils.getColorAttrDefaultColor(getContext(),
                com.android.internal.R.attr.colorAccentPrimary));
    }

    private void updateArrowWith(Rect anchorViewLocation) {