Set immutable flag on PendingIntent
This commit is contained in:
@@ -26,8 +26,8 @@ object ServiceNotification {
|
|||||||
.setColor(ContextCompat.getColor(context, R.color.colorPrimary))
|
.setColor(ContextCompat.getColor(context, R.color.colorPrimary))
|
||||||
.setContentTitle(context.getText(R.string.notification_tethering_title))
|
.setContentTitle(context.getText(R.string.notification_tethering_title))
|
||||||
.setSmallIcon(R.drawable.ic_quick_settings_tile_on)
|
.setSmallIcon(R.drawable.ic_quick_settings_tile_on)
|
||||||
.setContentIntent(PendingIntent.getActivity(context, 0,
|
.setContentIntent(PendingIntent.getActivity(context, 0, Intent(context, MainActivity::class.java),
|
||||||
Intent(context, MainActivity::class.java), PendingIntent.FLAG_UPDATE_CURRENT))
|
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE))
|
||||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||||
val deviceCounts = deviceCountsMap.values.flatMap { it.entries }.sortedBy { it.key }
|
val deviceCounts = deviceCountsMap.values.flatMap { it.entries }.sortedBy { it.key }
|
||||||
val inactive = inactiveMap.values.flatten()
|
val inactive = inactiveMap.values.flatten()
|
||||||
|
|||||||
Reference in New Issue
Block a user