Remove vestigial "Choose date format" option.
Almost all of our date formatting goes via icu these days, so this is a no-op almost everywhere. (And should be a no-op everywhere soon.) There's no obvious way to fix it, so remove it. UI guidelines say we should use spelled out month names anyway. Bug: 18322220 Change-Id: Ic9e903eceab3c096426f313bf4ef3a38644774e1
This commit is contained in:
@@ -666,33 +666,11 @@ public class BatteryHistoryChart extends View {
|
||||
}
|
||||
|
||||
private boolean isDayFirst() {
|
||||
String value = Settings.System.getString(mContext.getContentResolver(),
|
||||
Settings.System.DATE_FORMAT);
|
||||
if (value == null) {
|
||||
LocaleData d = LocaleData.get(mContext.getResources().getConfiguration().locale);
|
||||
value = d.shortDateFormat4;
|
||||
}
|
||||
LocaleData d = LocaleData.get(mContext.getResources().getConfiguration().locale);
|
||||
String value = d.shortDateFormat4;
|
||||
return value.indexOf('M') > value.indexOf('d');
|
||||
}
|
||||
|
||||
/*
|
||||
private void buildTime() {
|
||||
java.text.DateFormat shortDateFormat = DateFormat.getDateFormat(context);
|
||||
final Calendar now = Calendar.getInstance();
|
||||
mDummyDate.setTimeZone(now.getTimeZone());
|
||||
// We use December 31st because it's unambiguous when demonstrating the date format.
|
||||
// We use 13:00 so we can demonstrate the 12/24 hour options.
|
||||
mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0);
|
||||
Date dummyDate = mDummyDate.getTime();
|
||||
mTimePref.setSummary(DateFormat.getTimeFormat(getActivity()).format(now.getTime()));
|
||||
mTimeZone.setSummary(getTimeZoneText(now.getTimeZone(), true));
|
||||
mDatePref.setSummary(shortDateFormat.format(now.getTime()));
|
||||
mDateFormat.setSummary(shortDateFormat.format(dummyDate));
|
||||
mTime24Pref.setSummary(DateFormat.getTimeFormat(getActivity()).format(dummyDate));
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
@Override
|
||||
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
|
||||
super.onSizeChanged(w, h, oldw, oldh);
|
||||
|
Reference in New Issue
Block a user