diff options
author | John Spurlock <jspurlock@google.com> | 2014-08-14 13:03:13 -0400 |
---|---|---|
committer | Dan Sandler <dsandler@android.com> | 2014-08-15 15:06:43 +0000 |
commit | a7f8addd0982f599105aeb9611477b149860db83 (patch) | |
tree | d75213b1c346b1380ccf26be8be7dea69a36822d /src/com/android/settings/notification | |
parent | 86370f5dfd3f78e80b9940c31d73975a46080964 (diff) | |
download | packages_apps_Settings-a7f8addd0982f599105aeb9611477b149860db83.zip packages_apps_Settings-a7f8addd0982f599105aeb9611477b149860db83.tar.gz packages_apps_Settings-a7f8addd0982f599105aeb9611477b149860db83.tar.bz2 |
Settings: Update to follow NotificationManager aidl change.
Depends on frameworks/base:
I1d8269a4e6fe170ce776bf932dbbdfb29dd25dd7
Change-Id: I4015b60d84541a1f3d9e9c506ab8f44f1d18f71f
Diffstat (limited to 'src/com/android/settings/notification')
-rw-r--r-- | src/com/android/settings/notification/ZenModeConditionSelection.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/settings/notification/ZenModeConditionSelection.java b/src/com/android/settings/notification/ZenModeConditionSelection.java index 4b1c229..610baba 100644 --- a/src/com/android/settings/notification/ZenModeConditionSelection.java +++ b/src/com/android/settings/notification/ZenModeConditionSelection.java @@ -54,14 +54,14 @@ public class ZenModeConditionSelection extends RadioGroup { b.setChecked(true); } - private RadioButton newRadioButton(Object tag) { + private RadioButton newRadioButton(Condition condition) { final RadioButton button = new RadioButton(mContext); - button.setTag(tag); + button.setTag(condition); button.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { - handleSubscribe((Uri)button.getTag()); + handleSubscribe((Condition) button.getTag()); } } }); @@ -95,7 +95,7 @@ public class ZenModeConditionSelection extends RadioGroup { RadioButton v = (RadioButton) findViewWithTag(c.id); if (c.state == Condition.STATE_TRUE || c.state == Condition.STATE_UNKNOWN) { if (v == null) { - v = newRadioButton(c.id); + v = newRadioButton(c); } } if (v != null) { @@ -105,10 +105,10 @@ public class ZenModeConditionSelection extends RadioGroup { } } - protected void handleSubscribe(Uri id) { - if (DEBUG) Log.d(TAG, "handleSubscribe " + id); + protected void handleSubscribe(Condition c) { + if (DEBUG) Log.d(TAG, "handleSubscribe " + c); try { - mNoMan.setZenModeCondition(id); + mNoMan.setZenModeCondition(c); } catch (RemoteException e) { // noop } |