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

Commit a2af5bc9 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Take headers into account when expanding a ExpListView group."

parents 54330c31 52b65d39
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -548,8 +548,9 @@ public class ExpandableListView extends ListView {
                final int groupPos = posMetadata.position.groupPos;
                final int groupFlatPos = posMetadata.position.flatListPos;

                smoothScrollToPosition(groupFlatPos + mAdapter.getChildrenCount(groupPos),
                        groupFlatPos);
                final int shiftedGroupPosition = groupFlatPos + getHeaderViewsCount(); 
                smoothScrollToPosition(shiftedGroupPosition + mAdapter.getChildrenCount(groupPos),
                        shiftedGroupPosition);
            }

            returnValue = true;