diff options
author | Luis Vidal <lvidal@cyngn.com> | 2016-05-16 16:35:35 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-17 14:30:09 -0700 |
commit | d67600a4f39917e47d5009bf4f9f8ce3be362af9 (patch) | |
tree | ae566d2947713ab2a97436ea56dfb2f9e972a7dc /src/com/android/settings/DateChangeReceiver.java | |
parent | d6709e61c125cdc636944c16efe3303f9ffbb9e1 (diff) | |
download | packages_apps_Settings-d67600a4f39917e47d5009bf4f9f8ce3be362af9.zip packages_apps_Settings-d67600a4f39917e47d5009bf4f9f8ce3be362af9.tar.gz packages_apps_Settings-d67600a4f39917e47d5009bf4f9f8ce3be362af9.tar.bz2 |
Settings: update time zone strings on date change
If the user changes the date, most obvious case being from 1970, to a
current date, and the user's selected Locale's country time zones have
been changed (according to ICU), we must update the time zone strings in
the system.
Ref: CYNGNOS-453
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 926c3b0a50e521368628ef0d9975c99fa4cd3480)
Change-Id: I487c54cd4f933286c5004d24a3f8730ee2d4e4f6
Diffstat (limited to 'src/com/android/settings/DateChangeReceiver.java')
-rw-r--r-- | src/com/android/settings/DateChangeReceiver.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/com/android/settings/DateChangeReceiver.java b/src/com/android/settings/DateChangeReceiver.java new file mode 100644 index 0000000..6a3ec88 --- /dev/null +++ b/src/com/android/settings/DateChangeReceiver.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2016 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.settings; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; + +public class DateChangeReceiver extends BroadcastReceiver { + @Override + public void onReceive(Context context, Intent intent) { + DateTimeSettings.updateLocaleStrings(); + } +} |