Fix CastBottomSheet Wi-Fi and Bluetooth info display#474
Fix CastBottomSheet Wi-Fi and Bluetooth info display#474theovilardo merged 2 commits intobckp/cast-currentlyfrom
Conversation
- 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.
|
👋 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 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.
Improved reliability of Wi-Fi SSID and Bluetooth device name retrieval in
PlayerViewModelto fix missing information inCastBottomSheet. Added fallback for SSID and better event listening for Bluetooth connections.PR created automatically by Jules for task 5429066840612895020 started by @theovilardo