diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/LaundryBroadcastReceiver.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/LaundryBroadcastReceiver.kt index d7d0a21a..7df446cb 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/LaundryBroadcastReceiver.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/LaundryBroadcastReceiver.kt @@ -64,7 +64,7 @@ class LaundryBroadcastReceiver : BroadcastReceiver() { notificationManager.notify(notificationID, mBuilder.build()) // cancel intent after notification/alarm goes off - val fromIntent = PendingIntent.getBroadcast(context, id, intent, PendingIntent.FLAG_NO_CREATE) + val fromIntent = PendingIntent.getBroadcast(context, id, intent, PendingIntent.FLAG_NO_CREATE or PendingIntent.FLAG_IMMUTABLE) fromIntent?.cancel() } } diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt index d3bf766f..1ed8bbe6 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt @@ -386,7 +386,7 @@ class HomeAdapter( mContext, 0, share, - PendingIntent.FLAG_CANCEL_CURRENT, + PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE, ), ) customTabsIntent = builder?.build() @@ -567,7 +567,7 @@ class HomeAdapter( mContext, 0, share, - PendingIntent.FLAG_CANCEL_CURRENT, + PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE, ), ) customTabsIntent = builder?.build()