diff options
| author | Joachim Sauer <jsauer@google.com> | 2016-05-26 11:29:46 +0100 |
|---|---|---|
| committer | Joachim Sauer <jsauer@google.com> | 2016-05-31 11:11:52 +0100 |
| commit | b2c91e9c9a3ee9872f85611bac3b98bbf5dddc51 (patch) | |
| tree | 7174619c2cec2d2d4b844aefc6bd45315ab63273 /include/ScopedJavaUnicodeString.h | |
| parent | cdece565da13d1f17a3cd520f9708c8201167672 (diff) | |
Sync default timezone to ICU.
When java.util.TimeZone.setDefault() is called (either by client code or
from ActivityThread.updateTimeZone due to ACTION_TIMEZONE_CHANGED) we
need to notify android.icu.util.TimeZone of this change, as it keeps a
cached android.icu.util.TimeZone object to represent that default value.
android.icu.util.TimeZone.setTimeZone would be the obvious candidate
here. Unfortunately that method was hidden to have a single consistent
way to set the timezone and tries to do some extra work that is
undesireable on Android.
To avoid potential loops of ICU setDefault calling JDK setDefault and
vice versa, we remove the ICU setDefault.
Bug: 28949992
(cherry picked from commit f59264d36afd660c69d3b9dff46bc35d57e7c94f)
Change-Id: Iaa63c2d77a4d345ee9af2d7d0c268746f6c101d3
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions
