Commit 56263fa2 by zhangchengbo

fix:注释消息通知栏短信[删除]按钮

parent 4a3f8804
......@@ -64,15 +64,15 @@ class NotificationHelper(private val context: Context) {
val markAsReadPendingIntent =
PendingIntent.getBroadcast(context, notificationId, markAsReadIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE)
val deleteSmsIntent = Intent(context, DeleteSmsReceiver::class.java).apply {
putExtra(THREAD_ID, threadId)
putExtra(MESSAGE_ID, messageId)
}
val deleteSmsPendingIntent =
PendingIntent.getBroadcast(context, notificationId, deleteSmsIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE)
// val deleteSmsIntent = Intent(context, DeleteSmsReceiver::class.java).apply {
// putExtra(THREAD_ID, threadId)
// putExtra(MESSAGE_ID, messageId)
// }
// val deleteSmsPendingIntent =
// PendingIntent.getBroadcast(context, notificationId, deleteSmsIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE)
var replyAction: NotificationCompat.Action? = null
val isNoReplySms = isShortCodeWithLetters(address)
// val isNoReplySms = isShortCodeWithLetters(address)
if (isNougatPlus() /*&& !isNoReplySms*/) {
val replyLabel = context.getString(R.string.reply)
val remoteInput = RemoteInput.Builder(REPLY)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment