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

Commit 45ec6473 authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am b5de5c5e: Merge "When dragging down on the lockscreen, the lowest card...

am b5de5c5e: Merge "When dragging down on the lockscreen, the lowest card could jump." into lmp-preview-dev

* commit 'b5de5c5eae5acf879314610a17c1c9950948782d':
  When dragging down on the lockscreen, the lowest card could jump.
parents cb17c5e1 ece9de44
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -264,6 +264,13 @@ public class NotificationStackScrollLayout extends ViewGroup
                : mPaddingBetweenElementsNormal;
        mBottomStackSlowDownHeight = mStackScrollAlgorithm.getBottomStackSlowDownLength();
        updateContentHeight();
        notifyHeightChangeListener(null);
    }

    private void notifyHeightChangeListener(ExpandableView view) {
        if (mOnHeightChangedListener != null) {
            mOnHeightChangedListener.onHeightChanged(view);
        }
    }

    @Override
@@ -402,9 +409,7 @@ public class NotificationStackScrollLayout extends ViewGroup
                mNeedsAnimation =  true;
            }
            requestChildrenUpdate();
            if (mOnHeightChangedListener != null) {
                mOnHeightChangedListener.onHeightChanged(null);
            }
            notifyHeightChangeListener(null);
        }
    }

@@ -1725,9 +1730,7 @@ public class NotificationStackScrollLayout extends ViewGroup
    public void onHeightChanged(ExpandableView view) {
        updateContentHeight();
        updateScrollPositionIfNecessary();
        if (mOnHeightChangedListener != null) {
            mOnHeightChangedListener.onHeightChanged(view);
        }
        notifyHeightChangeListener(view);
        requestChildrenUpdate();
    }