Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5497f7f authored by Ze Li's avatar Ze Li
Browse files

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
parent 169e31aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment