Migrate THROW_SECURITY_EXCEPTIONS

Use @EnabledSince instead of @EnabledAfter for
THROW_SECURITY_EXCEPTIONS.

Test: m
Bug: 172238506
Change-Id: Idfc08b82493dfece24e838b74e2a4690459a146e
This commit is contained in:
Andrei Onea
2020-11-09 21:23:20 +00:00
parent 3c3baf163a
commit 1af46efa1c

View File

@@ -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;
/**