SAP: set priority after user confirm access permission

For current design, the priority will stay in PRIORITY_UNDEFINED even
thought SAP connected, it will cause the toggle in device detail page
display wrong state. Set priority after user confirm access permission
to fix this.

Use EXTRA_ACCESS_REQUEST_TYPE instead of mIsWaitingAuthorization when
receive ACTION_CONNECTION_ACCESS_REPLY intend, it can prevent we mislead
by intend for other profiles, such as MAP and PBAP.

Bug:130870422
Test: connect SAP, check settings UI
Change-Id: I1549fbd173180bc8871ffc661773d29fabd81424
1 file changed