summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-10-21 21:25:34 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-21 21:25:34 +0000
commit0a76c47e7134a10d9aa61d27e7b9f99569ed20da (patch)
tree60c9d83af4a1000f98bb4521f24d291616e67ea1 /packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
parent184c46a93d2ee232db6d541c1966b53a858b5ad7 (diff)
parent0dfda02ec30ee155fd26af0a5d390c504807e0eb (diff)
downloadframeworks_base-0a76c47e7134a10d9aa61d27e7b9f99569ed20da.zip
frameworks_base-0a76c47e7134a10d9aa61d27e7b9f99569ed20da.tar.gz
frameworks_base-0a76c47e7134a10d9aa61d27e7b9f99569ed20da.tar.bz2
am 0dfda02e: am 1a3f7db0: VolumeDialog: Restore default-selection logic.
* commit '0dfda02ec30ee155fd26af0a5d390c504807e0eb': VolumeDialog: Restore default-selection logic.
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java b/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
index d7552b6..69be377 100644
--- a/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
+++ b/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
@@ -430,7 +430,8 @@ public class ZenModePanel extends LinearLayout {
}
tag.condition = condition;
tag.rb.setEnabled(enabled);
- if (sameConditionId(mSessionExitCondition, tag.condition)) {
+ if (mSessionExitCondition != null
+ && sameConditionId(mSessionExitCondition, tag.condition)) {
tag.rb.setChecked(true);
}
tag.rb.setOnCheckedChangeListener(new OnCheckedChangeListener() {