Fixed 24hour-display in list and timepicker

pull/14/head
Arne Jans 13 years ago
parent 0343957b3b
commit 496c240a2a

@ -11,6 +11,7 @@ import java.util.Date;
import java.util.Locale;
import android.content.Context;
import android.text.format.DateFormat;
import android.text.format.DateUtils;
@ -66,10 +67,11 @@ public class DateUtilities {
if(is24HourOverride != null)
return is24HourOverride;
String value = android.provider.Settings.System.getString(context.getContentResolver(),
android.provider.Settings.System.TIME_12_24);
boolean b24 = !(value == null || value.equals("12"));
return b24;
// String value = android.provider.Settings.System.getString(context.getContentResolver(),
// android.provider.Settings.System.TIME_12_24);
// boolean b24 = !(value == null || value.equals("12"));
// return b24;
return DateFormat.is24HourFormat(context);
}
/**

Loading…
Cancel
Save