Merge "Update alignment for gear / snooze icons to shift when expanded" into oc-dr1-dev am: 0b8a985cd6 am: dbb5c98423

am: e95503d26e

Change-Id: I8368b23b3bf5df24000c2494fe7dd4e9ce9c779f
This commit is contained in:
Mady Mellor
2017-07-20 21:00:47 +00:00
committed by android-build-merger
2 changed files with 4 additions and 1 deletions

View File

@@ -1974,6 +1974,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
if (mGuts != null) {
mGuts.setActualHeight(height);
}
if (mMenuRow.getMenuView() != null) {
mMenuRow.onHeightUpdate();
}
}
@Override

View File

@@ -431,7 +431,7 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl
if (mParent == null || mMenuItems.size() == 0 || mMenuContainer == null) {
return;
}
int parentHeight = mParent.getCollapsedHeight();
int parentHeight = mParent.getActualHeight();
float translationY;
if (parentHeight < mVertSpaceForIcons) {
translationY = (parentHeight / 2) - (mHorizSpaceForIcon / 2);