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

Commit 9048b483 authored by Roman Birg's avatar Roman Birg
Browse files

SystemUI: fix viewpager page recycling



Can't add views to the index of the position of the page because that
assumes all other pages are part of the view group.

Ref: CYNGNOS-1644

Change-Id: I5e51d5561787ca0358a98cfd68c4a53d81117613
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent d1295657
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -202,8 +202,7 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On
                } else {
                    final int adjustedPosition = mEditing ? position - 1 : position;
                    QSPage page = mPages.get(adjustedPosition);

                    container.addView(page, position);
                    container.addView(page);
                    return page;
                }
            }