From 1c0e33b103e87b1ae3005a514bcce731fd7f96fb Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Fri, 10 Jan 2020 17:02:30 -0500 Subject: [PATCH] Add config for overlaying extra default QS tiles The new config resource allows for an overlay to specify additional QS Tiles. These tiles will be available on a fresh flash of the device, as well as when the user resets the tiles in QSCustomizer. If the tiles are custom tiles and the apk is not installedi or the TileService is disabled, the tile will just be discarded. Test: atest QSTileHostTest Test: add the grayscale custom spec to the config value and check that the tile appears on reset. Bug: 147493661 Change-Id: Ifbb8cc8ac7ef16c4b67ebbc776703e9ac8208c43 --- core/res/res/values/config.xml | 6 +++ core/res/res/values/symbols.xml | 1 + .../com/android/systemui/qs/QSTileHost.java | 30 ++++++++++--- .../systemui/qs/customize/QSCustomizer.java | 7 +-- .../android/systemui/qs/QSTileHostTest.java | 45 +++++++++++++++++-- 5 files changed, 74 insertions(+), 15 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 6f554f0264df3..700581937b4cb 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -3545,6 +3545,12 @@ true + + +