Merge "Tint the pointer white at all times." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
86b5fa9c1f
@@ -250,6 +250,7 @@ public class BubbleExpandedView extends LinearLayout {
|
|||||||
|
|
||||||
mPointerDrawable = new ShapeDrawable(TriangleShape.create(
|
mPointerDrawable = new ShapeDrawable(TriangleShape.create(
|
||||||
mPointerWidth, mPointerHeight, true /* pointUp */));
|
mPointerWidth, mPointerHeight, true /* pointUp */));
|
||||||
|
mPointerDrawable.setTint(Color.WHITE);
|
||||||
mPointerView.setBackground(mPointerDrawable);
|
mPointerView.setBackground(mPointerDrawable);
|
||||||
mPointerView.setVisibility(INVISIBLE);
|
mPointerView.setVisibility(INVISIBLE);
|
||||||
|
|
||||||
@@ -311,14 +312,10 @@ public class BubbleExpandedView extends LinearLayout {
|
|||||||
|
|
||||||
void applyThemeAttrs() {
|
void applyThemeAttrs() {
|
||||||
final TypedArray ta = mContext.obtainStyledAttributes(
|
final TypedArray ta = mContext.obtainStyledAttributes(
|
||||||
new int[] {
|
new int[] {android.R.attr.dialogCornerRadius});
|
||||||
android.R.attr.colorBackgroundFloating,
|
float cornerRadius = ta.getDimensionPixelSize(0, 0);
|
||||||
android.R.attr.dialogCornerRadius});
|
|
||||||
int bgColor = ta.getColor(0, Color.WHITE);
|
|
||||||
float cornerRadius = ta.getDimensionPixelSize(1, 0);
|
|
||||||
ta.recycle();
|
ta.recycle();
|
||||||
|
|
||||||
mPointerDrawable.setTint(bgColor);
|
|
||||||
if (mActivityView != null && ScreenDecorationsUtils.supportsRoundedCornersOnWindows(
|
if (mActivityView != null && ScreenDecorationsUtils.supportsRoundedCornersOnWindows(
|
||||||
mContext.getResources())) {
|
mContext.getResources())) {
|
||||||
mActivityView.setCornerRadius(cornerRadius);
|
mActivityView.setCornerRadius(cornerRadius);
|
||||||
|
|||||||
Reference in New Issue
Block a user