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

Commit 1da54eea authored by Roman Birg's avatar Roman Birg
Browse files

SystemUI: don't add already attached qs tile pages



Check before adding the page to make sure we haven't yet added it.

Ref: CYNGNOS-1644

Change-Id: I8b5d807a51152e3e6ce7a9a07cef728aa410e23e
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 2482eb81
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -199,7 +199,9 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On
                } else {
                    final int adjustedPosition = mEditing ? position - 1 : position;
                    QSPage page = mPages.get(adjustedPosition);
                    if (!page.isAttachedToWindow()) {
                        container.addView(page);
                    }
                    return page;
                }
            }