Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 00bac0c8 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

PBAP: Add cleanUpServerSocket helper and remove unused code

* Remve broadcast receiver for BluetoothAdapter.ACTION_STATE_CHANGED.
When Bluetooth adapter status changed, lifecycle method will be called.
* Remove mAdapter != null check.
* Remove unused private fields.
* Remove MSG_SESSION_DISCONNECTED because it is replaced by
MSG_SERVERSESSION_CLOSE.
* Add helper method cleanUpServerSocket().
* Limit the scope of private fields.

Test: carkits with PBAP
Bug: 69417672
Change-Id: I8c144fa1c500db18c18e87cf20ec63c4223d2878
parent 6ec220c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment