diff options
author | 2020-11-18 07:11:39 +0000 | |
---|---|---|
committer | 2020-11-18 07:11:39 +0000 | |
commit | 29f0617cc57a85004d4451d5528f68229def5a1d (patch) | |
tree | 1bbfc716886d010957a0e5c746bac95e59acbcce | |
parent | 8f205538d4b50ec22f165a2d4cacaa92e3feb207 (diff) | |
parent | 52437ab08358ddfd63b4b8b196c0603f3939a892 (diff) |
Merge "Expose BroadcastOptions#setMaxManifestReceiverApiLevel as system API"
-rw-r--r-- | core/api/module-lib-current.txt | 5 | ||||
-rw-r--r-- | core/java/android/app/BroadcastOptions.java | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 6e141b89f925..d83c0adb3ae1 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -11,6 +11,11 @@ package android.app { field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage"; } + public class BroadcastOptions { + method public int getMaxManifestReceiverApiLevel(); + method public void setMaxManifestReceiverApiLevel(int); + } + public abstract class HomeVisibilityListener { ctor public HomeVisibilityListener(); method public abstract void onHomeVisibilityChanged(boolean); diff --git a/core/java/android/app/BroadcastOptions.java b/core/java/android/app/BroadcastOptions.java index 3789a44e1d55..03dca30f8560 100644 --- a/core/java/android/app/BroadcastOptions.java +++ b/core/java/android/app/BroadcastOptions.java @@ -127,6 +127,7 @@ public class BroadcastOptions { * them. This only applies to receivers declared in the app's AndroidManifest.xml. * @hide */ + @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) public void setMaxManifestReceiverApiLevel(int apiLevel) { mMaxManifestReceiverApiLevel = apiLevel; } @@ -135,6 +136,7 @@ public class BroadcastOptions { * Return {@link #setMaxManifestReceiverApiLevel}. * @hide */ + @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) public int getMaxManifestReceiverApiLevel() { return mMaxManifestReceiverApiLevel; } |