diff options
author | Jason Monk <jmonk@google.com> | 2014-11-18 16:12:20 -0500 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2014-11-18 21:17:40 +0000 |
commit | cd356f0dda78aceec01a66d88667f55b2b384235 (patch) | |
tree | a1de79376c4af6e067802e30d8f5d4fe5d913f2a /packages/SystemUI/src/com/android/systemui/qs | |
parent | b30d902ed404e5646bced27bdd2ca4006af802bf (diff) | |
download | frameworks_base-cd356f0dda78aceec01a66d88667f55b2b384235.zip frameworks_base-cd356f0dda78aceec01a66d88667f55b2b384235.tar.gz frameworks_base-cd356f0dda78aceec01a66d88667f55b2b384235.tar.bz2 |
Automatically enable BT when entering BT QS panel
Bug: 18334326
Change-Id: Ifbcdee1a8260ce959eae53c0900851f8da2f97ee
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java index 4d77348..1bc1d77 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java @@ -77,6 +77,10 @@ public class BluetoothTile extends QSTile<QSTile.BooleanState> { @Override protected void handleSecondaryClick() { + if (!mState.value) { + mState.value = true; + mController.setBluetoothEnabled(true); + } showDetail(true); } |