Apparently I don't know how to combine flags correctly

Closes #47
This commit is contained in:
Nathan Kerr 2022-08-25 14:22:50 -07:00
parent d1d6396c07
commit e11ee4f432

View File

@ -240,7 +240,7 @@ public class ForegroundService extends Service {
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent contentIntent = PendingIntent.getActivity( PendingIntent contentIntent = PendingIntent.getActivity(
context, NOTIFICATION_ID, intent, context, NOTIFICATION_ID, intent,
PendingIntent.FLAG_UPDATE_CURRENT & PendingIntent.FLAG_IMMUTABLE); PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
notification.setContentIntent(contentIntent); notification.setContentIntent(contentIntent);