Skip to content

General: Show dialog instead of snackbar when device rename is incomplete#505

Merged
d4rken merged 1 commit into
mainfrom
feat/rename-failure-dialog
Apr 14, 2026
Merged

General: Show dialog instead of snackbar when device rename is incomplete#505
d4rken merged 1 commit into
mainfrom
feat/rename-failure-dialog

Conversation

@d4rken

@d4rken d4rken commented Apr 14, 2026

Copy link
Copy Markdown
Member

What changed

When renaming an AirPods device fails to update the Android Bluetooth alias, the app now shows a dialog instead of a snackbar. The dialog includes a shortcut button to open Bluetooth Settings directly.

Technical Context

  • The system alias rename uses a hidden Android API via reflection (BluetoothDevice.setAlias). When it fails, the previous snackbar message was too long to read comfortably in the brief time it was visible.
  • The dialog reuses the existing SingleEventFlow event pattern — only the UI presentation changed, not the ViewModel logic.
  • Added a "Bluetooth Settings" action button since the message already tells the user to rename there or re-pair.

@d4rken d4rken added the enhancement Add a new feature of improve an existing feature label Apr 14, 2026
@d4rken d4rken merged commit 566a6cd into main Apr 14, 2026
10 checks passed
@d4rken d4rken deleted the feat/rename-failure-dialog branch April 14, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Add a new feature of improve an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant