Loading core/java/android/widget/DateTimeView.java +6 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,12 @@ public class DateTimeView extends TextView { if (format == null || "".equals(format)) { return DateFormat.getDateInstance(DateFormat.SHORT); } else { try { return new SimpleDateFormat(format); } catch (IllegalArgumentException e) { // If we tried to use a bad format string, fall back to a default. return DateFormat.getDateInstance(DateFormat.SHORT); } } } Loading Loading
core/java/android/widget/DateTimeView.java +6 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,12 @@ public class DateTimeView extends TextView { if (format == null || "".equals(format)) { return DateFormat.getDateInstance(DateFormat.SHORT); } else { try { return new SimpleDateFormat(format); } catch (IllegalArgumentException e) { // If we tried to use a bad format string, fall back to a default. return DateFormat.getDateInstance(DateFormat.SHORT); } } } Loading