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:
James Rich 2026-04-17 09:02:20 -05:00
parent d17e715a45
commit 72e27e32cc

View file

@ -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()
}