Merge "Update alignment for gear / snooze icons to shift when expanded" into oc-dr1-dev
am: 0b8a985cd6
Change-Id: Ib8d76ea165032175be98e8c1023af6c973be1ee4
This commit is contained in:
@@ -1974,6 +1974,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
|||||||
if (mGuts != null) {
|
if (mGuts != null) {
|
||||||
mGuts.setActualHeight(height);
|
mGuts.setActualHeight(height);
|
||||||
}
|
}
|
||||||
|
if (mMenuRow.getMenuView() != null) {
|
||||||
|
mMenuRow.onHeightUpdate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl
|
|||||||
if (mParent == null || mMenuItems.size() == 0 || mMenuContainer == null) {
|
if (mParent == null || mMenuItems.size() == 0 || mMenuContainer == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int parentHeight = mParent.getCollapsedHeight();
|
int parentHeight = mParent.getActualHeight();
|
||||||
float translationY;
|
float translationY;
|
||||||
if (parentHeight < mVertSpaceForIcons) {
|
if (parentHeight < mVertSpaceForIcons) {
|
||||||
translationY = (parentHeight / 2) - (mHorizSpaceForIcon / 2);
|
translationY = (parentHeight / 2) - (mHorizSpaceForIcon / 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user