From b389178a628614fa5a8dad580e7d25eeefe1f06c Mon Sep 17 00:00:00 2001 From: youngyi Date: Thu, 8 Aug 2024 16:20:27 +0800 Subject: [PATCH] zhangsan --- src/DateTimePickerDialog.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DateTimePickerDialog.java b/src/DateTimePickerDialog.java index 2c47ba4..d066458 100644 --- a/src/DateTimePickerDialog.java +++ b/src/DateTimePickerDialog.java @@ -67,6 +67,10 @@ public class DateTimePickerDialog extends AlertDialog implements OnClickListener public void set24HourView(boolean is24HourView) { mIs24HourView = is24HourView; } + + public void set12HourView(boolean is24HourView) { + mIs24HourView = is24HourView; + } public void setOnDateTimeSetListener(OnDateTimeSetListener callBack) { mOnDateTimeSetListener = callBack;