diff options
| author | 2020-11-18 09:57:10 +0000 | |
|---|---|---|
| committer | 2020-11-18 09:57:10 +0000 | |
| commit | 3f3766a881c3c59d192dade4b6e5302d25e3359b (patch) | |
| tree | f8d7af9e93bfb5f01dea9938196eaad3422a886b | |
| parent | 4b1cbf3844f40ecbc35f5fe02a4ed9f7249625e1 (diff) | |
| parent | b12dfe489f2bb810595a0f0d0fbd58a51991cb81 (diff) | |
Merge "Expose BroadcastOptions#setMaxManifestReceiverApiLevel as system API" am: c5ec644861 am: cb9a7b819c am: b12dfe489f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1466224
Change-Id: Id6b1eab77eee4fb38e9fe8e97bac28c2caec61c0
| -rw-r--r-- | core/api/module-lib-current.txt | 9 | ||||
| -rw-r--r-- | core/java/android/app/BroadcastOptions.java | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 198134edbb5b..ee8abf1c1894 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -1,4 +1,13 @@ // Signature format: 2.0 +package android.app { + + public class BroadcastOptions { + method public int getMaxManifestReceiverApiLevel(); + method public void setMaxManifestReceiverApiLevel(int); + } + +} + package android.os { public class Binder implements android.os.IBinder { 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; } |