summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2013-10-17 09:06:39 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-17 09:06:39 -0700
commit9568ad393194cbd42866e64dada88207b44462a6 (patch)
treea5a3aaa9fc048e2182dc1a5c882049c32bee0bc3 /tools
parent7dc35060a828c473dcc75d13d31edaa75768a40f (diff)
parent94e5ada7d629f125262fcc052cf15355a34a678a (diff)
downloadframeworks_base-9568ad393194cbd42866e64dada88207b44462a6.zip
frameworks_base-9568ad393194cbd42866e64dada88207b44462a6.tar.gz
frameworks_base-9568ad393194cbd42866e64dada88207b44462a6.tar.bz2
am 94e5ada7: am 81f74f4b: Fix DatePicker and Calendar widget in layoutlib.
* commit '94e5ada7d629f125262fcc052cf15355a34a678a': Fix DatePicker and Calendar widget in layoutlib.
Diffstat (limited to 'tools')
-rw-r--r--tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java b/tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java
index cd4f82b..294d743 100644
--- a/tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java
+++ b/tools/layoutlib/bridge/src/libcore/icu/ICU_Delegate.java
@@ -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 = "";