OSDN Git Service

listenForPhoneState only after SLC
authorRavi Nagarajan <nravi@broadcom.com>
Mon, 13 Aug 2012 14:51:05 +0000 (07:51 -0700)
committerMatthew Xie <mattx@google.com>
Tue, 14 Aug 2012 07:02:35 +0000 (00:02 -0700)
commit44d87716fccf8ff6f114db72711388fa57068078
tree93ce879b1dfc97baad5e6d15e17da1efe3495f9e
parentef39cada04683dd7ef7b68c89a8722f2ce635c28
listenForPhoneState only after SLC

Start phone state listener after SLC setup, instead of on
Disconnected SM exit(). On BT OFF, quitNow() forces a SM exit()
which incorrectly started the phone state listener. Additionally
no indicator updates should be sent prior to SLC setup
bug 6976119

Change-Id: Icff2bc52602230b098651225bec92d532f3a3ff9
src/com/android/bluetooth/hfp/HeadsetStateMachine.java