mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
chore(auto): log ReplyReceiver entry and completion
Temporary diagnostic logging added while investigating why Android Auto inline replies don't appear to dismiss the conversation notification for some users. Remove or downgrade to verbose once confirmed working. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d17e715a45
commit
72e27e32cc
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ import android.content.BroadcastReceiver
|
|||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import androidx.core.app.RemoteInput
|
||||
import co.touchlab.kermit.Logger
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.SupervisorJob
|
||||
import kotlinx.coroutines.launch
|
||||
|
|
@ -64,6 +65,7 @@ class ReplyReceiver :
|
|||
if (remoteInput != null) {
|
||||
val contactKey = intent.getStringExtra(CONTACT_KEY) ?: ""
|
||||
val message = remoteInput.getCharSequence(KEY_TEXT_REPLY)?.toString() ?: ""
|
||||
Logger.d { "ReplyReceiver: onReceive contactKey='$contactKey' msgLen=${message.length}" }
|
||||
|
||||
val pendingResult = goAsync()
|
||||
scope.launch {
|
||||
|
|
@ -71,6 +73,7 @@ class ReplyReceiver :
|
|||
sendMessage(message, contactKey)
|
||||
packetRepository.clearUnreadCount(contactKey, nowMillis)
|
||||
meshServiceNotifications.cancelMessageNotification(contactKey)
|
||||
Logger.d { "ReplyReceiver: reply flow complete for contactKey='$contactKey'" }
|
||||
} finally {
|
||||
pendingResult.finish()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue