Use the callback of CachedBluetoothDevice instead of metadata change listener...
Use the callback of CachedBluetoothDevice instead of metadata change listener to update summary in qs tile dialog. If the battery data source of the device is Bluetooth battery service instead of metadata, only registering the metadata change listener can not receive battery update. Using the callback of CachedBluetoothDevice can solve this bug. Test: com.android.systemui.bluetooth.qsdialog.BluetoothDeviceMetadataInteractorTest Bug: 397847825 Flag: com.android.settingslib.flags.refactor_battery_level_display Change-Id: I261d973a2b85edae467b32ee01c4e9ad7ab78789
Loading
Please register or sign in to comment