Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0719bc9f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Only notify listeners when actual height changes" into tm-qpr-dev am: ad5b95a6

parents 6d97866f ad5b95a6
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -186,12 +186,14 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable {
     * @param notifyListeners Whether the listener should be informed about the change.
     * @param notifyListeners Whether the listener should be informed about the change.
     */
     */
    public void setActualHeight(int actualHeight, boolean notifyListeners) {
    public void setActualHeight(int actualHeight, boolean notifyListeners) {
        if (mActualHeight != actualHeight) {
            mActualHeight = actualHeight;
            mActualHeight = actualHeight;
            updateClipping();
            updateClipping();
            if (notifyListeners) {
            if (notifyListeners) {
                notifyHeightChanged(false  /* needsAnimation */);
                notifyHeightChanged(false  /* needsAnimation */);
            }
            }
        }
        }
    }


    public void setActualHeight(int actualHeight) {
    public void setActualHeight(int actualHeight) {
        setActualHeight(actualHeight, true /* notifyListeners */);
        setActualHeight(actualHeight, true /* notifyListeners */);