Skip to content

Fix CastBottomSheet Wi-Fi and Bluetooth info display#474

Merged
theovilardo merged 2 commits intobckp/cast-currentlyfrom
cast-info-fix-5429066840612895020
Dec 9, 2025
Merged

Fix CastBottomSheet Wi-Fi and Bluetooth info display#474
theovilardo merged 2 commits intobckp/cast-currentlyfrom
cast-info-fix-5429066840612895020

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

Improved reliability of Wi-Fi SSID and Bluetooth device name retrieval in PlayerViewModel to fix missing information in CastBottomSheet. Added fallback for SSID and better event listening for Bluetooth connections.


PR created automatically by Jules for task 5429066840612895020 started by @theovilardo

- Update `PlayerViewModel.updateWifiInfo` to use `WifiManager.getConnectionInfo` as a fallback when `NetworkCapabilities` fails to return an SSID (e.g., due to permission or API level nuances).
- Update `PlayerViewModel.updateBluetoothName` to include `TYPE_HEARING_AID` and ensure it runs on `ACTION_ACL_CONNECTED` and `ACTION_ACL_DISCONNECTED` events for more reliable updates.
- This ensures the UI correctly displays the connected network name and audio device name as requested.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

- Update `PlayerViewModel.updateWifiInfo` to use `WifiManager.getConnectionInfo` as a fallback when `NetworkCapabilities` fails to return an SSID (e.g., due to permission or API level nuances).
- Update `PlayerViewModel.updateBluetoothName` to include `TYPE_HEARING_AID` and ensure it runs on `ACTION_ACL_CONNECTED` and `ACTION_ACL_DISCONNECTED` events for more reliable updates.
- Update `CastBottomSheet.kt` to use the SSID and Bluetooth device name as the Tile Labels (replacing "Wi-Fi" / "Bluetooth") when connected.
- Update `ActiveDeviceHero` in `CastBottomSheet.kt` to display the Bluetooth device name and icon when connected, improving visibility of the active audio output.
@theovilardo theovilardo merged commit a12eb5e into bckp/cast-currently Dec 9, 2025
@lostf1sh lostf1sh deleted the cast-info-fix-5429066840612895020 branch January 16, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant