refactor: use PendingIntentCompat for UsbManager

This commit is contained in:
andrekir 2024-07-25 18:06:44 -03:00
parent 4f5c6a5fd1
commit 921ef709d6
2 changed files with 10 additions and 14 deletions

View file

@ -18,12 +18,6 @@ import androidx.core.content.IntentCompat
import androidx.core.os.ParcelCompat
object PendingIntentCompat {
val FLAG_MUTABLE = if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
PendingIntent.FLAG_MUTABLE
} else {
0
}
val FLAG_IMMUTABLE = if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
PendingIntent.FLAG_IMMUTABLE
} else {