From d1295657d03c605ea20f0881f6adff2762167e04 Mon Sep 17 00:00:00 2001 From: Roman Birg Date: Mon, 18 Jan 2016 14:32:50 -0800 Subject: 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 --- packages/SystemUI/src/com/android/systemui/qs/QSTile.java | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSTile.java') 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 implements Listenable { void setEditing(boolean editing); boolean isEditing(); void goToSettingsPage(); + void resetTiles(); } } -- cgit v1.1