Skip to content

Fix: Show key icon for single-pod devices like AirPods Max#461

Merged
d4rken merged 1 commit intomainfrom
fix/single-pod-key-icon
Mar 23, 2026
Merged

Fix: Show key icon for single-pod devices like AirPods Max#461
d4rken merged 1 commit intomainfrom
fix/single-pod-key-icon

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Mar 23, 2026

What changed

Fixed the encryption key icon not appearing for single-pod devices (AirPods Max, Beats Solo, etc.) after adding IRK and ENC keys. The icon was only shown for dual-pod devices like AirPods Pro.

Technical Context

  • Root cause: The key icon conditional (isIRKMatch check + Icon composable) was implemented in DualPodsCard but never added to SinglePodsCard, which renders all single-pod devices
  • Mirrored the existing DualPodsCard key icon pattern into SinglePodsCard — shows a filled key when both IRK match and private payload are present, outlined key for IRK-only
  • Added an ApplePods-aware mock (MockSingleApplePodDevice) so the Compose preview for the charging state also renders the key icon

@d4rken d4rken added the bug Something isn't working label Mar 23, 2026
@d4rken d4rken merged commit 217d9be into main Mar 23, 2026
10 checks passed
@d4rken d4rken deleted the fix/single-pod-key-icon branch March 23, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant