kopia lustrzana https://github.com/ge0rg/aprsdroid
Android 13: pending intents in backend code
rodzic
70462b73d7
commit
06fc910b9d
|
@ -49,7 +49,7 @@ class UsbTnc(service : AprsService, prefs : PrefsWrapper) extends AprsBackend(pr
|
|||
var alreadyRunning = false
|
||||
|
||||
val intent = new Intent(USB_PERM_ACTION)
|
||||
val pendingIntent = PendingIntent.getBroadcast(service, 0, intent, 0)
|
||||
val pendingIntent = PendingIntent.getBroadcast(service, 0, intent, PendingIntent.FLAG_IMMUTABLE)
|
||||
|
||||
val receiver = new BroadcastReceiver() {
|
||||
override def onReceive(ctx : Context, i : Intent) {
|
||||
|
|
|
@ -16,7 +16,7 @@ class FixedPosition(service : AprsService, prefs : PrefsWrapper) extends Locatio
|
|||
|
||||
val intent = new Intent(ALARM_ACTION)
|
||||
val pendingIntent = PendingIntent.getBroadcast(service, 0, intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE)
|
||||
|
||||
// get called on alarm
|
||||
val receiver = new BroadcastReceiver() {
|
||||
|
|
Ładowanie…
Reference in New Issue