diff options
author | Zach Johnson <zachoverflow@google.com> | 2015-10-18 19:21:38 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-18 19:21:38 +0000 |
commit | 264d46d6a57507ffc60d1cdd17cd63fa6da01161 (patch) | |
tree | 7142a3fba77c7bda7050f3cf94a3a99e43cf6da8 | |
parent | 8fe21aec738de743342e2c1ee5e2a2f7c3fc6af4 (diff) | |
parent | 5040e76e2b2742a210e5e1ef29ae1b1779f12ee3 (diff) | |
download | android_packages_apps_Bluetooth-264d46d6a57507ffc60d1cdd17cd63fa6da01161.tar.gz android_packages_apps_Bluetooth-264d46d6a57507ffc60d1cdd17cd63fa6da01161.tar.bz2 android_packages_apps_Bluetooth-264d46d6a57507ffc60d1cdd17cd63fa6da01161.zip |
am 5040e76e: Only apply foreground flag for audio state connected
* commit '5040e76e2b2742a210e5e1ef29ae1b1779f12ee3':
Only apply foreground flag for audio state connected
-rw-r--r-- | src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java b/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java index 21d38e229..bc1833901 100644 --- a/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java +++ b/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java @@ -2242,11 +2242,11 @@ final class HeadsetClientStateMachine extends StateMachine { private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { Intent intent = new Intent(BluetoothHeadsetClient.ACTION_AUDIO_STATE_CHANGED); - intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); intent.putExtra(BluetoothProfile.EXTRA_STATE, newState); if (newState == BluetoothHeadsetClient.STATE_AUDIO_CONNECTED) { + intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); intent.putExtra(BluetoothHeadsetClient.EXTRA_AUDIO_WBS, mAudioWbs); } |