Fix the bug the qs tile secondary title is using the wrong battery source.
BluetoothDevice.METADATA_MAIN_BATTERY is not suitable for all types of bluetooth devices. We switch to use the battery levels functions provided by CachedBluetoothDevice. Thus metadata listener is replaced with the callback of CachedBluetoothDevice. Test: com.android.systemui.qs.tiles.BluetoothTileTest Bug: 397847825 Flag: com.android.settingslib.flags.refactor_battery_level_display Change-Id: If1850ca785bc1ce62303d875431c6835e6095f89
Loading
Please register or sign in to comment