|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package net.micode.notes.ui;
|
|
|
|
|
// package net.micode.notes.ui;
|
|
|
|
|
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ public class DateTimePickerDialog extends AlertDialog implements OnClickListener
|
|
|
|
|
mDateTimePicker = new DateTimePicker(context);
|
|
|
|
|
setView(mDateTimePicker);
|
|
|
|
|
mDateTimePicker.setOnDateTimeChangedListener(new OnDateTimeChangedListener() {
|
|
|
|
|
public void onDateTimeChanged(DateTimePicker view, int year, int month,
|
|
|
|
|
public void onDateTimeChanged(int year, int month,
|
|
|
|
|
int dayOfMonth, int hourOfDay, int minute) {
|
|
|
|
|
mDate.set(Calendar.YEAR, year);
|
|
|
|
|
mDate.set(Calendar.MONTH, month);
|
|
|
|
@ -82,7 +82,7 @@ public class DateTimePickerDialog extends AlertDialog implements OnClickListener
|
|
|
|
|
setTitle(DateUtils.formatDateTime(this.getContext(), date, flag));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void onClick(DialogInterface arg0, int arg1) {
|
|
|
|
|
public void onClick(int arg1) {
|
|
|
|
|
if (mOnDateTimeSetListener != null) {
|
|
|
|
|
mOnDateTimeSetListener.OnDateTimeSet(this, mDate.getTimeInMillis());
|
|
|
|
|
}
|
|
|
|
|