Merge "Bluetooth: show multi-device status in Quick Settings" into oc-dr1-dev

This commit is contained in:
TreeHugger Robot
2017-07-27 18:55:22 +00:00
committed by Android (Google) Code Review

View File

@@ -269,7 +269,7 @@ public class BluetoothTile extends QSTileImpl<BooleanState> {
item.icon = R.drawable.ic_qs_bluetooth_on;
item.line1 = device.getName();
item.tag = device;
int state = mController.getMaxConnectionState(device);
int state = device.getMaxConnectionState();
if (state == BluetoothProfile.STATE_CONNECTED) {
item.icon = R.drawable.ic_qs_bluetooth_connected;
int batteryLevel = device.getBatteryLevel();