The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): Android alerts and the live card show the same status bar icon (#29738)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 5, 2026 at 16:56 UTC
1a0f605344bbb6464742dab7e748daa22f071f6e
2 files changed
+3
-6
apps/mobile/modules/t3-agent-notifications/android/src/main/java/expo/modules/t3agentnotifications/AgentActivityPresentation.kt
-1
@@ -126,7 +126,6 @@ internal class ActivityPresentation(data: Map<String, String>, private val activ
126
127
fun applyTo(builder: NotificationCompat.Builder, context: Context) {
128
val tint = phase?.let { ContextCompat.getColor(context, it.color) }
129
- builder.setSmallIcon(R.drawable.agent_activity_mark)
129
if (tint != null) builder.setColor(tint)
130
// Tint the summary only when it names an outcome or a request; a plain
131
// "3 working" stays neutral so the accent keeps meaning something.
apps/mobile/modules/t3-agent-notifications/android/src/main/java/expo/modules/t3agentnotifications/AgentNotifications.kt
+3
-5
@@ -358,9 +358,8 @@ object AgentNotifications {
358
}
359
}
360
361
- private fun base(context: Context, channel: String): NotificationCompat.Builder {
362
- val icon = context.resources.getIdentifier("notification_icon", "drawable", context.packageName)
363
- return NotificationCompat.Builder(context, channel)
361
+ private fun base(context: Context, channel: String): NotificationCompat.Builder =
362
+ NotificationCompat.Builder(context, channel)
363
.setPriority(
364
if (channel ==
365
ALERT_CHANNEL
@@ -371,10 +370,9 @@ object AgentNotifications {
370
}
371
)
372
.setDefaults(if (channel == ALERT_CHANNEL) Notification.DEFAULT_ALL else 0)
374
- .setSmallIcon(if (icon != 0) icon else android.R.drawable.ic_dialog_info)
373
+ .setSmallIcon(R.drawable.agent_activity_mark)
374
.setVisibility(NotificationCompat.VISIBILITY_PRIVATE)
375
.setShowWhen(false)
377
- }
376
377
private fun contentIntent(
378
context: Context,