Merge "sets the initial arrow color for the popup to match the popup background." into udc-dev am: 7de5e99a10
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22121620 Change-Id: I0f2f2012db36abf7b8b80b0459def32b9fbb1b1b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -140,13 +140,11 @@ public abstract class ArrowPopup<T extends Context & ActivityContext>
|
||||
mOutlineRadius = Themes.getDialogCornerRadius(context);
|
||||
mActivityContext = ActivityContext.lookupContext(context);
|
||||
mIsRtl = Utilities.isRtl(getResources());
|
||||
|
||||
int popupPrimaryColor = Themes.getAttrColor(context, R.attr.popupColorPrimary);
|
||||
mArrowColor = popupPrimaryColor;
|
||||
mElevation = getResources().getDimension(R.dimen.deep_shortcuts_elevation);
|
||||
|
||||
// Initialize arrow view
|
||||
final Resources resources = getResources();
|
||||
mArrowColor = getColorStateList(getContext(), R.color.popup_shade_first).getDefaultColor();
|
||||
mMargin = resources.getDimensionPixelSize(R.dimen.popup_margin);
|
||||
mArrowWidth = resources.getDimensionPixelSize(R.dimen.popup_arrow_width);
|
||||
mArrowHeight = resources.getDimensionPixelSize(R.dimen.popup_arrow_height);
|
||||
@@ -159,6 +157,7 @@ public abstract class ArrowPopup<T extends Context & ActivityContext>
|
||||
|
||||
int smallerRadius = resources.getDimensionPixelSize(R.dimen.popup_smaller_radius);
|
||||
mRoundedTop = new GradientDrawable();
|
||||
int popupPrimaryColor = Themes.getAttrColor(context, R.attr.popupColorPrimary);
|
||||
mRoundedTop.setColor(popupPrimaryColor);
|
||||
mRoundedTop.setCornerRadii(new float[] { mOutlineRadius, mOutlineRadius, mOutlineRadius,
|
||||
mOutlineRadius, smallerRadius, smallerRadius, smallerRadius, smallerRadius});
|
||||
|
||||
Reference in New Issue
Block a user