Skip to content

Commit

Permalink
FLAG_IMMUTABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcns committed Dec 10, 2022
1 parent bc919e8 commit 3464a0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ fun NotificationOptions.createBuilder(): NotificationCompat.Builder? {
APP.INSTANCE,
0,
WakeAppReceiver.newIntent(APP.INSTANCE), // 创建唤醒广播意图
PendingIntent.FLAG_UPDATE_CURRENT
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
else PendingIntent.FLAG_UPDATE_CURRENT
)
)
onSettingNotificationCompatBuilder?.invoke(this)
Expand Down

0 comments on commit 3464a0b

Please sign in to comment.