Merge "Update alignment for gear / snooze icons to shift when expanded" into oc-dr1-dev

am: 0b8a985cd6

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

View File

@@ -1973,6 +1973,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);