From 262c8e19bc54dda82f0489cbc722192d173791bd Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 9 Sep 2011 14:27:50 -0700 Subject: [PATCH] Changed to reflect Tim\'s suggesion --- .../todoroo/astrid/ui/DeadlineTimePickerDialog.java | 10 +++++----- .../src/com/todoroo/astrid/ui/HideUntilControlSet.java | 2 +- .../src/com/todoroo/astrid/ui/UrgencyControlSet.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/ui/DeadlineTimePickerDialog.java b/astrid/src/com/todoroo/astrid/ui/DeadlineTimePickerDialog.java index 213dab4b0..1bb5855b1 100644 --- a/astrid/src/com/todoroo/astrid/ui/DeadlineTimePickerDialog.java +++ b/astrid/src/com/todoroo/astrid/ui/DeadlineTimePickerDialog.java @@ -82,9 +82,9 @@ public class DeadlineTimePickerDialog extends AlertDialog implements OnClickList */ public DeadlineTimePickerDialog(Context context, OnDeadlineTimeSetListener callBack, - int hourOfDay, int minute, boolean is24HourView) { + int hourOfDay, int minute, boolean is24HourView, boolean hasTime) { this(context, android.R.style.Theme_Dialog, - callBack, hourOfDay, minute, is24HourView); + callBack, hourOfDay, minute, is24HourView, hasTime); } /** @@ -98,7 +98,7 @@ public class DeadlineTimePickerDialog extends AlertDialog implements OnClickList public DeadlineTimePickerDialog(Context context, int theme, OnDeadlineTimeSetListener callBack, - int hourOfDay, int minute, boolean is24HourView) { + int hourOfDay, int minute, boolean is24HourView, boolean hasTime) { super(context, theme); mCallback = callBack; mInitialHourOfDay = hourOfDay; @@ -130,8 +130,8 @@ public class DeadlineTimePickerDialog extends AlertDialog implements OnClickList } }; mHasTime.setOnCheckedChangeListener(listener); - mHasTime.setChecked(true); - listener.onCheckedChanged(null, true); + mHasTime.setChecked(hasTime); + listener.onCheckedChanged(null, hasTime); // initialize state mTimePicker.setCurrentHour(mInitialHourOfDay); diff --git a/astrid/src/com/todoroo/astrid/ui/HideUntilControlSet.java b/astrid/src/com/todoroo/astrid/ui/HideUntilControlSet.java index 2d9738f7d..192e5fd06 100644 --- a/astrid/src/com/todoroo/astrid/ui/HideUntilControlSet.java +++ b/astrid/src/com/todoroo/astrid/ui/HideUntilControlSet.java @@ -164,7 +164,7 @@ public class HideUntilControlSet implements TaskEditControlSet, DeadlineTimePickerDialog timePicker = new DeadlineTimePickerDialog(activity, this, existingDateHour, existingDateMinutes, - DateUtilities.is24HourFormat(activity)); + DateUtilities.is24HourFormat(activity), true); timePicker.setOnCancelListener(this); timePicker.show(); diff --git a/astrid/src/com/todoroo/astrid/ui/UrgencyControlSet.java b/astrid/src/com/todoroo/astrid/ui/UrgencyControlSet.java index eba2123a8..5f8fe220b 100644 --- a/astrid/src/com/todoroo/astrid/ui/UrgencyControlSet.java +++ b/astrid/src/com/todoroo/astrid/ui/UrgencyControlSet.java @@ -97,7 +97,7 @@ public class UrgencyControlSet implements TaskEditControlSet, DeadlineTimePickerDialog timePicker = new DeadlineTimePickerDialog(activity, UrgencyControlSet.this, hour, minute, - DateUtilities.is24HourFormat(activity)); + DateUtilities.is24HourFormat(activity), true); timePicker.show(); }