OSDN Git Service

Remove receiver status foreground flag
authorZach Johnson <zachoverflow@google.com>
Mon, 26 Oct 2015 16:47:48 +0000 (09:47 -0700)
committerZach Johnson <zachoverflow@google.com>
Mon, 26 Oct 2015 16:50:18 +0000 (09:50 -0700)
Turns out this actually causes more problems than
it attempts to solve.

b/25116554
b/25256719

Change-Id: Ia30ab5bf0f6e794376eae85b2616bcdb0049ef76

src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java

index bc18339..f9cadab 100644 (file)
@@ -2246,7 +2246,6 @@ final class HeadsetClientStateMachine extends StateMachine {
         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);
         }