summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-04-19 23:39:42 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-04-21 01:25:09 -0700
commit7a79da634eb68522267cef3a18d229c9503675b7 (patch)
tree6f534f1128474b65eafe019ef85d744f63970793
parent5c00a21dc5087bd89ce5b1138e0f043836e00d7d (diff)
downloadpackages_apps_Settings-7a79da634eb68522267cef3a18d229c9503675b7.zip
packages_apps_Settings-7a79da634eb68522267cef3a18d229c9503675b7.tar.gz
packages_apps_Settings-7a79da634eb68522267cef3a18d229c9503675b7.tar.bz2
Settings: Broadcast ACTION_DATE_CHANGED
Send ACTION_DATE_CHANGED when user change the format of the date Change-Id: I89ef0354ae2b0825378a6e8939341c4eccf63e17 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
-rw-r--r--src/com/android/settings/DateTimeSettings.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/settings/DateTimeSettings.java b/src/com/android/settings/DateTimeSettings.java
index 65a34f4..4921c17 100644
--- a/src/com/android/settings/DateTimeSettings.java
+++ b/src/com/android/settings/DateTimeSettings.java
@@ -213,6 +213,7 @@ public class DateTimeSettings extends SettingsPreferenceFragment
Settings.System.putString(getContentResolver(),
Settings.System.DATE_FORMAT, format);
updateTimeAndDateDisplay(getActivity());
+ dateUpdated();
} else if (key.equals(KEY_AUTO_TIME)) {
boolean autoEnabled = preferences.getBoolean(key, true);
Settings.Global.putInt(getContentResolver(), Settings.Global.AUTO_TIME,
@@ -313,6 +314,11 @@ public class DateTimeSettings extends SettingsPreferenceFragment
getActivity().sendBroadcast(timeChanged);
}
+ private void dateUpdated() {
+ Intent timeChanged = new Intent(Intent.ACTION_DATE_CHANGED);
+ getActivity().sendBroadcast(timeChanged);
+ }
+
/* Get & Set values from the system settings */
private boolean is24Hour() {