diff options
| author | 2023-11-09 22:05:46 +0800 | |
|---|---|---|
| committer | 2023-11-09 22:05:46 +0800 | |
| commit | 589175e10751d638646b9f35550906700b3986e5 (patch) | |
| tree | 90c75c7ba35cfcfa058a7c6a196a59958ec70b69 | |
| parent | 78d43e118ac2a6626c4e022c4d6df07dd8dffd66 (diff) | |
Don't show battery level for short summary
BUG: 289553709
BUG: 301414439
Test: atest CachedBluetoothDeviceTest
Change-Id: I39fdd6bcf95d2912232101b482b7d4d5ce75b8ec
| -rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java index e9f4b5c8efc6..245fe6edd601 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java @@ -1310,7 +1310,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> // Set default string with battery level in device connected situation. if (isTwsBatteryAvailable(leftBattery, rightBattery)) { stringRes = R.string.bluetooth_battery_level_untethered; - } else if (batteryLevelPercentageString != null) { + } else if (batteryLevelPercentageString != null && !shortSummary) { stringRes = R.string.bluetooth_battery_level; } |