Commit e12c39b
committed
Always queue A2DP connection state message with wakelock held
Messages for changes to A2DP connection state are intended to be
queued in AudioService after acquiring a wake lock, which is
released after the message has been handled.
This was correctly done for connection messages when the system
is up and running, but wasn't when the BluetoothProfile service
listener gets an onServiceConnected() event, which is the case
the the device boots.
This change correctly uses the queueMsgUnderWakeLock() method
whenever a MSG_SET_A2DP_CONNECTION_STATE is to be sent.
Bug 6616292
Change-Id: Ie337a4641a89c522e2d233bccaac4e08ce3241171 parent b215726 commit e12c39b
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
1962 | 1964 | | |
1963 | 1965 | | |
1964 | 1966 | | |
1965 | | - | |
| 1967 | + | |
1966 | 1968 | | |
1967 | | - | |
1968 | 1969 | | |
1969 | 1970 | | |
1970 | 1971 | | |
| |||
0 commit comments