Skip to content

Commit

Permalink
Revert "fix: only show permission revoked permission for <= 11"
Browse files Browse the repository at this point in the history
This reverts commit 4fff013.
  • Loading branch information
jd1378 committed May 12, 2024
1 parent 1852163 commit 47960f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/main/java/io/github/jd1378/otphelper/BootReceiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package io.github.jd1378.otphelper
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.core.app.NotificationManagerCompat
import io.github.jd1378.otphelper.utils.NotificationHelper

Expand All @@ -13,8 +12,7 @@ class BootReceiver : BroadcastReceiver() {
if (NotificationManagerCompat.getEnabledListenerPackages(context)
.contains(context.packageName)) {
context.startService(Intent(context, NotificationListener::class.java))
} else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
// the bug is only present in android 11 and before it seems
} else {
NotificationHelper.sendPermissionRevokedNotif(context)
}
}
Expand Down

0 comments on commit 47960f9

Please sign in to comment.