Changed to reflect Tim\'s suggesion

pull/14/head
Sam Bosley 13 years ago
parent 0380ace1d1
commit 262c8e19bc

@ -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);

@ -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();

@ -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();
}

Loading…
Cancel
Save