diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2017-07-20 12:34:06 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2017-07-20 12:34:06 -0700 |
commit | 3150434f4965367d3654608718247440f77eaa8d (patch) | |
tree | d2330b453ae1c1f80f7aacb5f164d1a4fd65a20b /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 785750817b08794a8160cfb5628036dd30b4fbc0 (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