OSDN Git Service

SystemUI: Enable three icon switching within QS DND tile
authorMike xdnax <mikecoconut5832@gmail.com>
Fri, 4 Dec 2015 06:34:49 +0000 (01:34 -0500)
committerSteve Kondik <shade@chemlab.org>
Sat, 8 Oct 2016 12:22:42 +0000 (05:22 -0700)
commit5fb1cb702d369d978067340a930f0d1b70ff8c29
treeb15993b8f1c01f49e82d1914e0d63469bb39587f
parent12d766713a3850514ed2b6117e5fdf3432796890
SystemUI: Enable three icon switching within QS DND tile

This expands the QS DND tile to use three states instead of two.

Java commits by @nicholaschum

What this does:
- Removes the two states (true/false) clause {? XXX:YYY;} and uses an
switch(mZen) instead for the two cases and the default. If in the
future, we want to add another tile, just add another case.
- Adds two vector drawables originally by Cataclysm dev @atl4ntis,
modified and reformatted - this allows for themers to theme this
resource as well by adding the two new drawables.

PS1: Uses if/elsif/else clause
PS2: Update to use switch(mZen) clause

Change-Id: If34e225bdc81e944a12ffd764a521de934aca3b3
packages/SystemUI/res/drawable/ic_qs_dnd_on_priority.xml [new file with mode: 0644]
packages/SystemUI/res/drawable/stat_sys_dnd_priority.xml [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/qs/tiles/DndTile.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java