diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java index e042e9cb2a191..8f73b802271d5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java @@ -186,10 +186,12 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable { * @param notifyListeners Whether the listener should be informed about the change. */ public void setActualHeight(int actualHeight, boolean notifyListeners) { - mActualHeight = actualHeight; - updateClipping(); - if (notifyListeners) { - notifyHeightChanged(false /* needsAnimation */); + if (mActualHeight != actualHeight) { + mActualHeight = actualHeight; + updateClipping(); + if (notifyListeners) { + notifyHeightChanged(false /* needsAnimation */); + } } }