use ID as request code

This commit is contained in:
AdrianLxM 2017-11-06 15:24:52 +01:00
parent e4f15c0e0d
commit ef425563bf

View file

@ -27,6 +27,6 @@ public class DismissNotificationService extends IntentService {
public static PendingIntent deleteIntent(int id){
Intent intent = new Intent(MainApp.instance(), DismissNotificationService.class);
intent.putExtra("alertID", id);
return PendingIntent.getService(MainApp.instance(), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
return PendingIntent.getService(MainApp.instance(), id, intent, PendingIntent.FLAG_UPDATE_CURRENT);
}
}