diff options
author | Mike xdnax <mikecoconut5832@gmail.com> | 2015-12-04 01:34:49 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-12-09 14:23:59 -0800 |
commit | 7ea79cf51c98dead5163ea3c35fe823cbc85d4b6 (patch) | |
tree | d332e91ebbf1b33a3ff0db5daf41ebad23234a15 /packages/SystemUI/src/com/android/systemui/qs/tiles | |
parent | a616e3a243c31af415318aff273103a1bf523258 (diff) | |
download | frameworks_base-7ea79cf51c98dead5163ea3c35fe823cbc85d4b6.zip frameworks_base-7ea79cf51c98dead5163ea3c35fe823cbc85d4b6.tar.gz frameworks_base-7ea79cf51c98dead5163ea3c35fe823cbc85d4b6.tar.bz2 |
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
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/tiles')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/DndTile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/DndTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/DndTile.java index 6c40486..0d43f8c 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/DndTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/DndTile.java @@ -141,7 +141,7 @@ public class DndTile extends QSTile<QSTile.BooleanState> { state.visible = isVisible(mContext); switch (zen) { case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: - state.icon = ResourceIcon.get(R.drawable.ic_qs_dnd_on); + state.icon = ResourceIcon.get(R.drawable.ic_qs_dnd_on_priority); state.label = mContext.getString(R.string.quick_settings_dnd_priority_label); state.contentDescription = mContext.getString( R.string.accessibility_quick_settings_dnd_priority_on); |