From 1ad54882670cf84cb5308359910151eeaa713466 Mon Sep 17 00:00:00 2001 From: Tom Hsu Date: Fri, 24 Feb 2023 10:58:54 +0000 Subject: [PATCH] Add description of regional preference - In Andorid U, regional preferfence use language tags to record user preference of temperature unit, first day of week and numbering system. - ACTION_LOCALE_CHANGED is a existed action and when appending the langauge tags to locale, system shall also send out this intent to notify whole android process which registered this action. Bug: b/270670680 Test: Make passed Change-Id: I67e5c08c8f89989b661110760080dc53430242bb --- core/java/android/content/Intent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 5818ed75056c6..85daf15865d1e 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -3234,8 +3234,9 @@ public class Intent implements Parcelable, Cloneable { /** * Broadcast Action: The receiver's effective locale has changed. * - * This happens when the device locale, or the receiving app's locale - * (set via {@link android.app.LocaleManager#setApplicationLocales}) changed. + * This happens when the device locale, the receiving app's locale + * (set via {@link android.app.LocaleManager#setApplicationLocales}) or language tags + * of Regional preferences changed. * * Can be received by manifest-declared receivers. *