Merge "Fixed an issue where notifications wouldn't animate on height change" into sc-dev
This commit is contained in:
@@ -2482,7 +2482,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
|||||||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
||||||
int intrinsicBefore = getIntrinsicHeight();
|
int intrinsicBefore = getIntrinsicHeight();
|
||||||
super.onLayout(changed, left, top, right, bottom);
|
super.onLayout(changed, left, top, right, bottom);
|
||||||
if (intrinsicBefore != getIntrinsicHeight() && intrinsicBefore != 0) {
|
if (intrinsicBefore != getIntrinsicHeight()
|
||||||
|
&& (intrinsicBefore != 0 || getActualHeight() > 0)) {
|
||||||
notifyHeightChanged(true /* needsAnimation */);
|
notifyHeightChanged(true /* needsAnimation */);
|
||||||
}
|
}
|
||||||
if (mMenuRow != null && mMenuRow.getMenuView() != null) {
|
if (mMenuRow != null && mMenuRow.getMenuView() != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user