Commit 845ba12c by zhangchengbo

fix:解决中文备注不能回复短信的问题

parent 80f54f8a
...@@ -71,8 +71,8 @@ class NotificationHelper(private val context: Context) { ...@@ -71,8 +71,8 @@ class NotificationHelper(private val context: Context) {
PendingIntent.getBroadcast(context, notificationId, deleteSmsIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE) PendingIntent.getBroadcast(context, notificationId, deleteSmsIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE)
var replyAction: NotificationCompat.Action? = null var replyAction: NotificationCompat.Action? = null
val isNoReplySms = isShortCodeWithLetters(address) // val isNoReplySms = isShortCodeWithLetters(address)
if (isNougatPlus() && !isNoReplySms) { if (isNougatPlus() /*&& !isNoReplySms*/) {
val replyLabel = context.getString(R.string.reply) val replyLabel = context.getString(R.string.reply)
val remoteInput = RemoteInput.Builder(REPLY) val remoteInput = RemoteInput.Builder(REPLY)
.setLabel(replyLabel) .setLabel(replyLabel)
......
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