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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user