VolumeDialog: Restore default-selection logic.
Bug: 18066513 Change-Id: Ie72189edf9b59fd8d192d882aaadf1ac05dcb359
This commit is contained in:
@@ -430,7 +430,8 @@ public class ZenModePanel extends LinearLayout {
|
|||||||
}
|
}
|
||||||
tag.condition = condition;
|
tag.condition = condition;
|
||||||
tag.rb.setEnabled(enabled);
|
tag.rb.setEnabled(enabled);
|
||||||
if (sameConditionId(mSessionExitCondition, tag.condition)) {
|
if (mSessionExitCondition != null
|
||||||
|
&& sameConditionId(mSessionExitCondition, tag.condition)) {
|
||||||
tag.rb.setChecked(true);
|
tag.rb.setChecked(true);
|
||||||
}
|
}
|
||||||
tag.rb.setOnCheckedChangeListener(new OnCheckedChangeListener() {
|
tag.rb.setOnCheckedChangeListener(new OnCheckedChangeListener() {
|
||||||
|
|||||||
Reference in New Issue
Block a user