mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: use PendingIntentCompat for UsbManager
This commit is contained in:
parent
4f5c6a5fd1
commit
921ef709d6
2 changed files with 10 additions and 14 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue