diff options
Diffstat (limited to 'core/java/android/widget/TimePickerClockDelegate.java')
-rw-r--r-- | core/java/android/widget/TimePickerClockDelegate.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/java/android/widget/TimePickerClockDelegate.java b/core/java/android/widget/TimePickerClockDelegate.java index fd3f1da..ae44047 100644 --- a/core/java/android/widget/TimePickerClockDelegate.java +++ b/core/java/android/widget/TimePickerClockDelegate.java @@ -75,16 +75,6 @@ class TimePickerClockDelegate extends TimePicker.AbstractTimePickerDelegate { private boolean mHourWithTwoDigit; private char mHourFormat; - /** - * A no-op callback used in the constructor to avoid null checks later in - * the code. - */ - private static final TimePicker.OnTimeChangedListener NO_OP_CHANGE_LISTENER = - new TimePicker.OnTimeChangedListener() { - public void onTimeChanged(TimePicker view, int hourOfDay, int minute) { - } - }; - public TimePickerClockDelegate(TimePicker delegator, Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { super(delegator, context); @@ -215,8 +205,6 @@ class TimePickerClockDelegate extends TimePicker.AbstractTimePickerDelegate { updateMinuteControl(); updateAmPmControl(); - setOnTimeChangedListener(NO_OP_CHANGE_LISTENER); - // set to current time setCurrentHour(mTempCalendar.get(Calendar.HOUR_OF_DAY)); setCurrentMinute(mTempCalendar.get(Calendar.MINUTE)); |