Loading core/java/android/app/TimePickerDialog.java +9 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,15 @@ public class TimePickerDialog extends AlertDialog implements OnClickListener, @Override public void onClick(DialogInterface dialog, int which) { switch (which) { case BUTTON_POSITIVE: // Note this skips input validation and just uses the last valid time and hour // entry. This will only be invoked programmatically. User clicks on BUTTON_POSITIVE // are handled in show(). if (mTimeSetListener != null) { mTimeSetListener.onTimeSet(mTimePicker, mTimePicker.getCurrentHour(), mTimePicker.getCurrentMinute()); } break; case BUTTON_NEGATIVE: cancel(); break; Loading Loading
core/java/android/app/TimePickerDialog.java +9 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,15 @@ public class TimePickerDialog extends AlertDialog implements OnClickListener, @Override public void onClick(DialogInterface dialog, int which) { switch (which) { case BUTTON_POSITIVE: // Note this skips input validation and just uses the last valid time and hour // entry. This will only be invoked programmatically. User clicks on BUTTON_POSITIVE // are handled in show(). if (mTimeSetListener != null) { mTimeSetListener.onTimeSet(mTimePicker, mTimePicker.getCurrentHour(), mTimePicker.getCurrentMinute()); } break; case BUTTON_NEGATIVE: cancel(); break; Loading