commit | da0b3af8538c114aa192eb68e87ff192853b79ac | [log] [tgz] |
---|---|---|
author | Jerome Gaillard <jgaillard@google.com> | Fri Nov 11 15:17:09 2016 +0000 |
committer | Jerome Gaillard <jgaillard@google.com> | Mon Nov 14 11:01:33 2016 +0000 |
tree | dffd5c3831016b3047484ba75dd49ecbe0d07a26 | |
parent | 87c239668ec943d9600d9b0acce49661894d17fa [diff] |
Change date on CustomCalendar The date of the calendar is set by converting the epoch time based on the local time zone. We choose at date at 12:00 GMT so that it will be on the same day no matter which time zone is considered. Test: part of testActivity Change-Id: Ib36a5b45f69323265dd5ceaa17eeac553fc2d071 (cherry picked from commit 896cc3a794bb6e173c1e53e97f70007c3e24de38)
diff --git a/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/CustomCalendar.java b/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/CustomCalendar.java index 80bbaf1..5c53af9 100644 --- a/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/CustomCalendar.java +++ b/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/CustomCalendar.java
@@ -26,6 +26,6 @@ } private void init() { - setDate(871703200000L, false, true); + setDate(871732800000L, false, true); } }