am b702e5df: Merge "Fix Bluetooth QS tile." into jb-mr1-dev
* commit 'b702e5df25a4537e8471d9b14c3cff4f3d2cb468': Fix Bluetooth QS tile.
This commit is contained in:
@@ -145,6 +145,7 @@ class QuickSettings {
|
||||
IntentFilter filter = new IntentFilter();
|
||||
filter.addAction(DisplayManager.ACTION_WIFI_DISPLAY_STATUS_CHANGED);
|
||||
filter.addAction(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED);
|
||||
filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);
|
||||
filter.addAction(Intent.ACTION_USER_SWITCHED);
|
||||
mContext.registerReceiver(mReceiver, filter);
|
||||
|
||||
@@ -854,6 +855,11 @@ class QuickSettings {
|
||||
DisplayManager.EXTRA_WIFI_DISPLAY_STATUS);
|
||||
mWifiDisplayStatus = status;
|
||||
applyWifiDisplayStatus();
|
||||
} else if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(action)) {
|
||||
int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE,
|
||||
BluetoothAdapter.ERROR);
|
||||
mBluetoothState.enabled = (state == BluetoothAdapter.STATE_ON);
|
||||
applyBluetoothStatus();
|
||||
} else if (BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED.equals(action)) {
|
||||
int status = intent.getIntExtra(BluetoothAdapter.EXTRA_CONNECTION_STATE,
|
||||
BluetoothAdapter.STATE_DISCONNECTED);
|
||||
|
||||
Reference in New Issue
Block a user