OSDN Git Service

Inform AVRCP Controller before cleaning up.
authorJoseph Pirozzo <pirozzoj@google.com>
Fri, 25 May 2018 19:31:06 +0000 (12:31 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Sat, 26 May 2018 04:09:38 +0000 (04:09 +0000)
commit35e9618558235ed58cfe794dac90c65a8be6a1ab
treefbd2c2714a3e2a2f1bdebdd20983a4f20e5d70e7
parent5d0728dcf93881f13fe7adc5a8578e9c8d734076
Inform AVRCP Controller before cleaning up.

Move the JNI callback earlier in the procedure before the device info is
zeroed out such that the higher levels know which device disconnected.

Bug: 80265765
Test: Disconnect AVRCP and verify bluetooth_manager reports it is
disconnected.

Change-Id: I1c69341227f4c1c1662022a4a77e1752f6306d2e
btif/src/btif_rc.cc