summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andrei Onea <andreionea@google.com> 2020-11-09 21:23:20 +0000
committer Andrei Onea <andreionea@google.com> 2020-11-09 21:23:20 +0000
commit1af46efa1c40eceaacbd9b5e01091fcc96b23312 (patch)
treec221efe9166087989e2f445d02e728f68fca12e6
parent3c3baf163a39e95defc343194ee750b5c169327f (diff)
Migrate THROW_SECURITY_EXCEPTIONS
Use @EnabledSince instead of @EnabledAfter for THROW_SECURITY_EXCEPTIONS. Test: m Bug: 172238506 Change-Id: Idfc08b82493dfece24e838b74e2a4690459a146e
-rw-r--r--core/java/android/content/om/OverlayManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/content/om/OverlayManager.java b/core/java/android/content/om/OverlayManager.java
index fd3d48f2fd0e..217f637cf9e3 100644
--- a/core/java/android/content/om/OverlayManager.java
+++ b/core/java/android/content/om/OverlayManager.java
@@ -23,7 +23,7 @@ import android.annotation.SystemApi;
import android.annotation.SystemService;
import android.compat.Compatibility;
import android.compat.annotation.ChangeId;
-import android.compat.annotation.EnabledAfter;
+import android.compat.annotation.EnabledSince;
import android.content.Context;
import android.os.Build;
import android.os.Process;
@@ -90,7 +90,7 @@ public class OverlayManager {
* java.lang.IllegalStateException}, which existed in the source prior to R.
*/
@ChangeId
- @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.Q)
+ @EnabledSince(targetSdkVersion = Build.VERSION_CODES.R)
private static final long THROW_SECURITY_EXCEPTIONS = 147340954;
/**