diff options
author | Roman Birg <roman@cyngn.com> | 2016-01-20 07:41:35 -0800 |
---|---|---|
committer | Roman Birg <roman@cyngn.com> | 2016-01-20 08:36:10 -0800 |
commit | 9048b48364ba3772c7788a50a23a29f18eae5b9d (patch) | |
tree | 3740bbb21299bf50d965100cfff30e741b8de9d8 /packages/SystemUI | |
parent | d1295657d03c605ea20f0881f6adff2762167e04 (diff) | |
download | frameworks_base-9048b48364ba3772c7788a50a23a29f18eae5b9d.zip frameworks_base-9048b48364ba3772c7788a50a23a29f18eae5b9d.tar.gz frameworks_base-9048b48364ba3772c7788a50a23a29f18eae5b9d.tar.bz2 |
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: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java index 5769f58..82ee4bd 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java @@ -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; } } |