diff options
author | Christopher Tate <ctate@google.com> | 2017-10-17 14:39:24 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2017-10-17 14:49:15 -0700 |
commit | 020ff8a390052455757c71134d2584881232adae (patch) | |
tree | 71209c96138f46b8a080d6f3fa6966214ca4ef53 /src/com/android/settings/datetime/TimeFormatPreferenceController.java | |
parent | db60997f2a8befdbd4686607f13ff256c0eaea19 (diff) | |
download | packages_apps_Settings-020ff8a390052455757c71134d2584881232adae.tar.gz packages_apps_Settings-020ff8a390052455757c71134d2584881232adae.tar.bz2 packages_apps_Settings-020ff8a390052455757c71134d2584881232adae.zip |
Use correct flags on ACTION_TIME_CHANGED broadcast
When Settings changes the display format for 12/24 hour time, it fakes
an ACTION_TIME_CHANGED broadcast to provoke apps to update their display.
It needs to use the right flags on that broadcast to match the way the
OS sends it when the time actually changes.
Bug: 67881917
Test: calendar widget, Deskclock, QCT timeservice
Change-Id: I46ce261c36d9c7180f6b8eae806ef9fbf271fa53
Diffstat (limited to 'src/com/android/settings/datetime/TimeFormatPreferenceController.java')
-rw-r--r-- | src/com/android/settings/datetime/TimeFormatPreferenceController.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/settings/datetime/TimeFormatPreferenceController.java b/src/com/android/settings/datetime/TimeFormatPreferenceController.java index c594b264ac..302c624c75 100644 --- a/src/com/android/settings/datetime/TimeFormatPreferenceController.java +++ b/src/com/android/settings/datetime/TimeFormatPreferenceController.java @@ -103,6 +103,7 @@ public class TimeFormatPreferenceController extends AbstractPreferenceController static void timeUpdated(Context context, Boolean is24Hour) { Intent timeChanged = new Intent(Intent.ACTION_TIME_CHANGED); + timeChanged.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND); int timeFormatPreference; if (is24Hour == null) { timeFormatPreference = Intent.EXTRA_TIME_PREF_VALUE_USE_LOCALE_DEFAULT; |