Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1af46efa authored by Andrei Onea's avatar Andrei Onea
Browse files

Migrate THROW_SECURITY_EXCEPTIONS

Use @EnabledSince instead of @EnabledAfter for
THROW_SECURITY_EXCEPTIONS.

Test: m
Bug: 172238506
Change-Id: Idfc08b82493dfece24e838b74e2a4690459a146e
parent 3c3baf16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;

    /**