Skip to content

General: Refresh Play Store dashboard and add-profile screenshots#586

Merged
d4rken merged 1 commit into
mainfrom
chore/screenshot-mock-data
May 4, 2026
Merged

General: Refresh Play Store dashboard and add-profile screenshots#586
d4rken merged 1 commit into
mainfrom
chore/screenshot-mock-data

Conversation

@d4rken

@d4rken d4rken commented May 4, 2026

Copy link
Copy Markdown
Member

What changed

Refreshed the Play Store dashboard and add-profile screenshots with more representative preview data:

  • Dashboard cards now show the user-defined device label ("My AirPods Pro" / "AirPods Max") instead of "?".
  • The dark dashboard showcases an AAP-connected device — full connectivity badge (BLE + IRK key + encrypted + AAP) and the ANC mode selector with "Adaptive" highlighted.
  • The "Create Profile" preview is pre-filled with a profile name, model, and paired Bluetooth device, making the screenshot illustrate the complete setup flow.

Technical Context

  • Added label to MockPodDataProvider's dashboard mocks. The popup screenshot was unaffected because it uses getLabel(context) which falls back to the model name; the dashboard card reads device.label directly with ? as the fallback.
  • Refactored BluetoothDevice2 so address and name are primary constructor fields with internal: BluetoothDevice? optional. Previews can now mock it without a real Android BluetoothDevice. Adjusted the six callers that need the wrapped Android handle (AapAutoConnect x4 with !!, two reflection calls in BluetoothManager2 with explicit null bail-out).
  • Bumped screenshot test maxHeapSize to 4g — the smoke batch (6 locales × 7 screens = 42 renders) was OOMing in layoutlib's image pool with the test executor's default heap.
  • zh-CN re-rendered with mirrored (RTL) layout in this run; appears to be a layoutlib quirk specific to that locale, unrelated to this change. The mock data is correct; the layout direction needs a separate fix before the next full Play Store regeneration.

Use AAP-connected mocks for the dark dashboard to showcase full connectivity badges (BLE + IRK + encrypted + AAP) and the ANC mode selector. Populate the add-profile preview with a demo name, model, and paired device. Add user-facing labels to the dashboard mock devices.

Refactor BluetoothDevice2 so name/address are primary constructor fields, letting previews construct one without a real Android BluetoothDevice. Bump the screenshot test JVM heap to 4g — the smoke batch (42 renders) was hitting the test executor's default ceiling.
@d4rken d4rken merged commit 8a81d35 into main May 4, 2026
11 checks passed
@d4rken d4rken deleted the chore/screenshot-mock-data branch May 4, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant