summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-01-20 09:13:28 -0800
committerRoman Birg <roman@cyngn.com>2016-01-20 09:30:34 -0800
commitaadb0367553be7453be7367277261bd4bdc06a7c (patch)
treeed8c75921d914c876626236d7b582e880a03a080 /packages/SystemUI
parentcd254613c8f54d55938909943a69fd51c6226662 (diff)
downloadframeworks_base-aadb0367553be7453be7367277261bd4bdc06a7c.zip
frameworks_base-aadb0367553be7453be7367277261bd4bdc06a7c.tar.gz
frameworks_base-aadb0367553be7453be7367277261bd4bdc06a7c.tar.bz2
SystemUI: fix tiles per page when changing top tile type
When toggling whether to enlarge the first two tiles, the tiles were retaining their previous pages and not properly moving to pages as necessary (cauaing the first page to have more tiles than there should be). Clearing out the tiles before to clear the states when the option is toggled will lay the tiles out properly. Ref: CYNGNOS-1644 Change-Id: I8f44faf4b9edf80418b24bea6f5906246be9ad07 Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI')
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java
index 82ee4bd..9f2a60e 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java
@@ -2143,6 +2143,7 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On
CMSettings.Secure.QS_USE_MAIN_TILES, 1, currentUserId) == 1;
if (firstRowLarge != mFirstRowLarge) {
mFirstRowLarge = firstRowLarge;
+ setTiles(new ArrayList<QSTile<?>>()); // clear out states
setTiles(mHost.getTiles());
}
}