diff options
author | Zach Johnson <zachoverflow@google.com> | 2015-10-18 12:44:39 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-18 12:44:39 +0000 |
commit | 8fe21aec738de743342e2c1ee5e2a2f7c3fc6af4 (patch) | |
tree | 110789a70d925afa358e843d67c957df6beb4727 | |
parent | 52879f79b15c0eb6d4c7a6f6c37bed75cf50a597 (diff) | |
parent | 5d0f29737bfa7d9e2891b1e99c87e86fce434599 (diff) | |
download | android_packages_apps_Bluetooth-8fe21aec738de743342e2c1ee5e2a2f7c3fc6af4.tar.gz android_packages_apps_Bluetooth-8fe21aec738de743342e2c1ee5e2a2f7c3fc6af4.tar.bz2 android_packages_apps_Bluetooth-8fe21aec738de743342e2c1ee5e2a2f7c3fc6af4.zip |
am 5d0f2973: Add FLAG_RECEIVER_FOREGROUND to audio state broadcasts
* commit '5d0f29737bfa7d9e2891b1e99c87e86fce434599':
Add FLAG_RECEIVER_FOREGROUND to audio state broadcasts
-rw-r--r-- | src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java b/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java index f9cadabe9..21d38e229 100644 --- a/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java +++ b/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java @@ -2242,6 +2242,7 @@ 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); |