Merge "Bluetooth: show multi-device status in Quick Settings" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3afa031888
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user