diff options
author | Roman Birg <roman@cyngn.com> | 2016-01-18 14:32:50 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-01-19 15:14:28 -0800 |
commit | d1295657d03c605ea20f0881f6adff2762167e04 (patch) | |
tree | e6647861302f32eac4205c020a84b62ab9c3f521 /packages/SystemUI/src/com/android/systemui/qs/QSPanel.java | |
parent | 4d84b82a5e41b3745ba75fc85c92877e5a702300 (diff) | |
download | frameworks_base-d1295657d03c605ea20f0881f6adff2762167e04.zip frameworks_base-d1295657d03c605ea20f0881f6adff2762167e04.tar.gz frameworks_base-d1295657d03c605ea20f0881f6adff2762167e04.tar.bz2 |
SystemUI: fix qs tile page regressions
- Hide QS tile toast message while adding tile
- Don't allow scrolling right when on last page
- The viewpager adapter is no longer responsible for actually creating the
backing pages, so we can safely cache them and add/remove them as the
viewpager sees fit. The pages will be permanently cached until a
future call to setTiles() results in less tiles, and the page will be
automatically cleaned up.
- This also fixes no tiles after theme change
- And resetting tiles too, custom tile listeners were interfering and
overwriting the default tile values
Ref: CYNGNOS-1644
Change-Id: Ibb43adb249b81601370ceab4a4873f91b34b5074
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSPanel.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSPanel.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java index 7f3d452..60dc787 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java @@ -82,7 +82,7 @@ public class QSPanel extends ViewGroup { protected QSTileHost mHost; protected QSFooter mFooter; - private boolean mGridContentVisible = true; + protected boolean mGridContentVisible = true; public QSPanel(Context context) { this(context, null); @@ -463,7 +463,7 @@ public class QSPanel extends ViewGroup { } } - private void setGridContentVisibility(boolean visible) { + protected void setGridContentVisibility(boolean visible) { int newVis = visible ? VISIBLE : INVISIBLE; for (int i = 0; i < mRecords.size(); i++) { TileRecord tileRecord = mRecords.get(i); |