mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-18 19:56:34 -04: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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user