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

Commit e46c1e81 authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

am 49551ca4: am 9a559970: am f67c874c: am 7e5e3745: Fix bug 2710825 - Prevent...

am 49551ca4: am 9a559970: am f67c874c: am 7e5e3745: Fix bug 2710825 - Prevent ExpandableListView from scrolling too far when expanding children.
parents 2b4140ef 49551ca4
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2665,7 +2665,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                        mScrollDuration);

                mLastSeenPos = lastPos;
                if (lastPos != mTargetPos) {
                if (lastPos < mTargetPos) {
                    post(this);
                }
                break;
@@ -2691,7 +2691,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                final int nextViewHeight = nextView.getHeight();
                final int nextViewTop = nextView.getTop();
                final int extraScroll = mExtraScroll;
                if (nextPos != mBoundPos) {
                if (nextPos < mBoundPos) {
                    smoothScrollBy(Math.max(0, nextViewHeight + nextViewTop - extraScroll),
                            mScrollDuration);

@@ -2724,7 +2724,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te

                mLastSeenPos = firstPos;

                if (firstPos != mTargetPos) {
                if (firstPos > mTargetPos) {
                    post(this);
                }
                break;
@@ -2748,7 +2748,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                final int lastViewTop = lastView.getTop();
                final int lastViewPixelsShowing = listHeight - lastViewTop;
                mLastSeenPos = lastPos;
                if (lastPos != mBoundPos) {
                if (lastPos > mBoundPos) {
                    smoothScrollBy(-(lastViewPixelsShowing - mExtraScroll), mScrollDuration);
                    post(this);
                } else {