From 51839ed228050ebf16d3b6dfbc1c7d27e4e1fe55 Mon Sep 17 00:00:00 2001 From: tom hsu Date: Wed, 15 Dec 2021 15:40:52 +0800 Subject: [PATCH] [Panlingual] Expose action to SDK constant for app's locale picker. Bug: 210797799 Test: make Test: local functional test Change-Id: I01eaeb35951c6a8e88e61d511163738d89d37bd5 --- core/api/current.txt | 1 + core/java/android/provider/Settings.java | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/core/api/current.txt b/core/api/current.txt index 6009cd0b2e378..dc5021328be36 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -35765,6 +35765,7 @@ package android.provider { field public static final String ACTION_APPLICATION_DETAILS_SETTINGS = "android.settings.APPLICATION_DETAILS_SETTINGS"; field public static final String ACTION_APPLICATION_DEVELOPMENT_SETTINGS = "android.settings.APPLICATION_DEVELOPMENT_SETTINGS"; field public static final String ACTION_APPLICATION_SETTINGS = "android.settings.APPLICATION_SETTINGS"; + field public static final String ACTION_APP_LOCALE_SETTINGS = "android.settings.APP_LOCALE_SETTINGS"; field public static final String ACTION_APP_NOTIFICATION_BUBBLE_SETTINGS = "android.settings.APP_NOTIFICATION_BUBBLE_SETTINGS"; field public static final String ACTION_APP_NOTIFICATION_SETTINGS = "android.settings.APP_NOTIFICATION_SETTINGS"; field public static final String ACTION_APP_OPEN_BY_DEFAULT_SETTINGS = "android.settings.APP_OPEN_BY_DEFAULT_SETTINGS"; diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index f5777ed0c8b36..94dd63758052a 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -949,6 +949,19 @@ public final class Settings { public static final String ACTION_LOCALE_SETTINGS = "android.settings.LOCALE_SETTINGS"; + /** + * Activity Action: Show settings to allow configuration of per application locale. + *

+ * Input: The Intent's data URI can specify the application package name to directly invoke the + * app locale details GUI specific to the package name. + * For example "package:com.my.app". + *

+ * Output: Nothing. + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_APP_LOCALE_SETTINGS = + "android.settings.APP_LOCALE_SETTINGS"; + /** * Activity Action: Show settings to allow configuration of lockscreen. *