Skip to content

Commit

Permalink
add check to silence false positive lint warning
Browse files Browse the repository at this point in the history
The BootReceiver class is explicitly not exported so this won't improve
anything but the lint expects it to be here. It didn't used to report an
issue so it was likely a regression in the check. It makes more sense to
add the check than silencing the lint in this case.
  • Loading branch information
thestinger committed Oct 27, 2024
1 parent b54280c commit 1e6c1b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/app/attestation/auditor/BootReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
public class BootReceiver extends BroadcastReceiver {
@Override
public void onReceive(final Context context, final Intent intent) {
if (!Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
throw new IllegalStateException("invalid action");
}
RemoteVerifyJob.restore(context);
}
}

0 comments on commit 1e6c1b4

Please sign in to comment.