1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00

Don't use PendingIntent.FLAG_CANCEL_CURRENT so alarms can be properly canceled

This commit is contained in:
Christophe Beyls 2017-02-08 20:43:35 +01:00
parent 4a63b8e186
commit 4faf70f1f6

View file

@ -64,7 +64,7 @@ public class AlarmIntentService extends IntentService {
Intent intent = new Intent(this, AlarmReceiver.class)
.setAction(AlarmReceiver.ACTION_NOTIFY_EVENT)
.setData(Uri.parse(String.valueOf(eventId)));
return PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
return PendingIntent.getBroadcast(this, 0, intent, 0);
}
@Override