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

Commit 23171c2c authored by Rubin Xu's avatar Rubin Xu
Browse files

Update device policy APIs after linter fix

Remove unnecessary SuppressLint annotation after linter no longer
throws incorrect warning

Bug: 264510719
Test: make -j update-api
Change-Id: Icbf16fb955a5a50a2ba457fe15761d33783b66f8
parent 2a3c5bc5
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SdkConstant;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -109,8 +108,6 @@ public abstract class PolicyUpdatesReceiver extends BroadcastReceiver {
    public static final String ACTION_DEVICE_POLICY_CHANGED =
            "android.app.admin.action.DEVICE_POLICY_CHANGED";

    // TODO(b/264510719): Remove once API linter is fixed
    @SuppressLint("ActionValue")
    /**
     * A string extra holding the package name the policy applies to, (see
     * {@link PolicyUpdatesReceiver#onPolicyChanged} and
@@ -119,8 +116,6 @@ public abstract class PolicyUpdatesReceiver extends BroadcastReceiver {
    public static final String EXTRA_PACKAGE_NAME =
            "android.app.admin.extra.PACKAGE_NAME";

    // TODO(b/264510719): Remove once API linter is fixed
    @SuppressLint("ActionValue")
    /**
     * A string extra holding the permission name the policy applies to, (see
     * {@link PolicyUpdatesReceiver#onPolicyChanged} and