diff --git a/astrid/plugin-src/com/todoroo/astrid/alarms/AlarmControlSet.java b/astrid/plugin-src/com/todoroo/astrid/alarms/AlarmControlSet.java index 0433f72e0..780f6dc04 100644 --- a/astrid/plugin-src/com/todoroo/astrid/alarms/AlarmControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/alarms/AlarmControlSet.java @@ -58,12 +58,13 @@ public final class AlarmControlSet extends TaskEditControlSet { @Override protected void afterInflate() { this.alertsContainer = (LinearLayout) getView().findViewById(R.id.alert_container); - getView().findViewById(R.id.alarms_add).setOnClickListener(new View.OnClickListener() { + View.OnClickListener addAlarmListener = new View.OnClickListener() { @Override public void onClick(View arg0) { addAlarm(new Date()); } - }); + }; + getView().findViewById(R.id.alarms_add).setOnClickListener(addAlarmListener); pickerDialog = new DateAndTimeDialog(activity, 0); } diff --git a/astrid/res/layout/control_set_alarms.xml b/astrid/res/layout/control_set_alarms.xml index af5c387e0..0ece52938 100644 --- a/astrid/res/layout/control_set_alarms.xml +++ b/astrid/res/layout/control_set_alarms.xml @@ -12,24 +12,31 @@ -