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/QSTile.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/QSTile.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSTile.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSTile.java b/packages/SystemUI/src/com/android/systemui/qs/QSTile.java index 6d0c857..2d62724 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSTile.java @@ -354,6 +354,7 @@ public abstract class QSTile<TState extends State> implements Listenable { void setEditing(boolean editing); boolean isEditing(); void goToSettingsPage(); + void resetTiles(); } } |