From 0d6c0768468cc2f1c2f7e771d7f70529bf251f03 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Tue, 26 May 2020 09:30:41 -0700 Subject: [PATCH] Document ACTION_WEBVIEW_SETTINGS possible unavailability In some situations the activity start Intent Settings#ACTION_WEBVIEW_SETTINGS might not resolve to any launchable activity. Make sure this is reflected in its reference documentation. Bug: 157267574 Test: atest CtsSystemIntentTestCases Test: atest CtsSystemIntentTestCases --user-type secondary_user Change-Id: I59289cab764d06cb74e35722bd26986a3159e5d6 --- core/java/android/provider/Settings.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index e0bc764025a58..d872fe231b874 100755 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1962,6 +1962,10 @@ public final class Settings { * Input: Nothing. *

* Output: Nothing. + *

+ * In some cases, a matching Activity may not exist, so ensure you + * safeguard against this. + */ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_WEBVIEW_SETTINGS = "android.settings.WEBVIEW_SETTINGS";