summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2017-07-20 12:34:06 -0700
committerRoozbeh Pournader <roozbeh@google.com>2017-07-20 12:34:06 -0700
commit3150434f4965367d3654608718247440f77eaa8d (patch)
treed2330b453ae1c1f80f7aacb5f164d1a4fd65a20b /tools/aapt2/java/JavaClassGenerator.cpp
parent785750817b08794a8160cfb5628036dd30b4fbc0 (diff)
Use the Context's locale in DateFormat
Previously, a mix and match of the default locale and the context's locale were used in DateFormat methods that took a Context as a parameter. Now we consistently use the Context's locale. Also refactored the methods is24HourFormat() and hasDesignator() for simpler and more readable code. Change-Id: I418c1dcb710cdf2daf14684b258b97bfabe61d8c Fixes: 62871956 Test: bit CtsTextTestCases:android.text.format.cts.DateFormatTest Test: adb shell am instrument -w -e package android.text com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions