diff options
| author | 2017-07-20 20:13:30 +0000 | |
|---|---|---|
| committer | 2017-07-20 20:13:30 +0000 | |
| commit | 0b8a985cd6ad499e8532d8468ea0ef68147eed2d (patch) | |
| tree | bb1c64a3c87e29af22b8d77deb1e74232ceb4f57 | |
| parent | 99cc68364768834b494b0fe06f4b80a607184cbf (diff) | |
| parent | 54540975a51c5433b4c77447acf1f6cb2b1e3562 (diff) | |
Merge "Update alignment for gear / snooze icons to shift when expanded" into oc-dr1-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java | 3 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationMenuRow.java | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index ed4f6855c515..22c0b736b007 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java @@ -1973,6 +1973,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView if (mGuts != null) { mGuts.setActualHeight(height); } + if (mMenuRow.getMenuView() != null) { + mMenuRow.onHeightUpdate(); + } } @Override diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationMenuRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationMenuRow.java index fddc446f6111..99b4b0799cba 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationMenuRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationMenuRow.java @@ -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); |