Fix DatePicker and Calendar widget in layoutlib.

Issue: https://code.google.com/p/android/issues/detail?id=59732
Change-Id: I281b3fdad88c591281a3645592c84f3e2cb61d09
This commit is contained in:
Deepanshu Gupta
2013-10-12 18:37:19 -07:00
parent 1cf5df38f4
commit 81f74f4bc9

View File

@ -181,12 +181,18 @@ public class ICU_Delegate {
result.longStandAloneMonthNames = result.longMonthNames;
result.shortStandAloneMonthNames = result.shortMonthNames;
// The platform code expects this to begin at index 1, rather than 0. It maps it directly to
// the constants from java.util.Calendar.<weekday>
result.longWeekdayNames = new String[] {
"Monday" ,"Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" };
"", "Sunday", "Monday" ,"Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
result.shortWeekdayNames = new String[] {
"Mon" ,"Tue", "Wed", "Thu", "Fri", "Sat", "Sun" };
"", "Sun", "Mon" ,"Tue", "Wed", "Thu", "Fri", "Sat" };
result.tinyWeekdayNames = new String[] {
"", "S", "M", "T", "W", "T", "F", "S" };
result.longStandAloneWeekdayNames = result.longWeekdayNames;
result.shortStandAloneWeekdayNames = result.shortWeekdayNames;
result.tinyStandAloneWeekdayNames = result.tinyWeekdayNames;
result.fullTimeFormat = "";
result.longTimeFormat = "";