From f6267d46017b324076047e2459531fd792090b67 Mon Sep 17 00:00:00 2001 From: Peter_Liang Date: Tue, 25 May 2021 22:09:54 +0800 Subject: [PATCH] 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 --- .../systemui/accessibility/floatingmenu/BaseTooltipView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/BaseTooltipView.java b/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/BaseTooltipView.java index 308585491aef7..61fc7edcd9a02 100644 --- a/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/BaseTooltipView.java +++ b/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/BaseTooltipView.java @@ -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) {