From 7638c49c845be3122ff25b0fc48218c6ec64754e Mon Sep 17 00:00:00 2001 From: Jerome Gaillard Date: Fri, 11 Nov 2016 15:17:09 +0000 Subject: [PATCH] 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) --- .../android/layoutlib/test/myapplication/CustomCalendar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/CustomCalendar.java b/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/CustomCalendar.java index 80bbaf139b4c9..5c53af95cfb39 100644 --- a/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/CustomCalendar.java +++ b/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/CustomCalendar.java @@ -26,6 +26,6 @@ public class CustomCalendar extends CalendarView { } private void init() { - setDate(871703200000L, false, true); + setDate(871732800000L, false, true); } }