From 34eb38f06cc4fea44cb609c4ef1eecc8313e6c95 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Wed, 12 Apr 2023 15:56:42 -0400 Subject: [PATCH] Add intent for communal settings Bug: 276742740 Test: adb shell am start -a android.settings.COMMUNAL_SETTINGS Change-Id: Id74d081837a798c1eb3bd70cd42f7de11192327d --- core/java/android/provider/Settings.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 7cb959dee245e..40e136666f376 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1747,6 +1747,21 @@ public final class Settings { @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_DREAM_SETTINGS = "android.settings.DREAM_SETTINGS"; + /** + * Activity Action: Show Communal settings. + *

+ * In some cases, a matching Activity may not exist, so ensure you + * safeguard against this. + *

+ * Input: Nothing. + *

+ * Output: Nothing. + * + * @hide + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_COMMUNAL_SETTING = "android.settings.COMMUNAL_SETTINGS"; + /** * Activity Action: Show Notification assistant settings. *