Merge "Update arrow color after all notifications dismissed." into sc-v2-dev

This commit is contained in:
Brian Isganitis
2021-09-29 16:38:52 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions
@@ -495,7 +495,7 @@ public abstract class ArrowPopup<T extends Context & ActivityContext>
mArrow.setPivotY(mIsAboveIcon ? mArrowHeight : 0);
}
private void updateArrowColor() {
protected void updateArrowColor() {
if (!Gravity.isVertical(mGravity)) {
mArrow.setBackground(new RoundedArrowDrawable(
mArrowWidth, mArrowHeight, mArrowPointRadius,
@@ -593,6 +593,7 @@ public class PopupContainerWithArrow<T extends StatefulActivity<LauncherState>>
mNotificationContainer.setVisibility(GONE);
updateHiddenShortcuts();
assignMarginsAndBackgrounds(PopupContainerWithArrow.this);
updateArrowColor();
} else {
mNotificationContainer.trimNotifications(
NotificationKeyData.extractKeysOnly(dotInfo.getNotificationKeys()));