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
This commit is contained in:
Peter_Liang
2021-05-25 22:09:54 +08:00
parent 75dc1f16e3
commit f6267d4601

View File

@@ -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) {