Commit 0343554
android: end call on stem press during a call
Once setupStemActions() marks the mute press as customized during a call,
the firmware stops handling the end-call press natively and forwards every
press to the app. handleCallStemPress only intercepted the mute press, so
end-call presses fell through to the user's normal stem action (play/pause,
next track, etc.) and never ended the call.
Identify the end-call press as the opposite of the mute press from
CALL_MANAGEMENT_CONFIG and route it through rejectCall(), which already
handles both telephony (TelecomManager.endCall) and VoIP (HEADSETHOOK
fallback for Teams/Zoom/Meet).1 parent ac5079b commit 0343554
1 file changed
Lines changed: 19 additions & 12 deletions
Lines changed: 19 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | | - | |
1284 | | - | |
| 1283 | + | |
| 1284 | + | |
1285 | 1285 | | |
1286 | | - | |
1287 | | - | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1288 | 1289 | | |
1289 | 1290 | | |
1290 | 1291 | | |
1291 | 1292 | | |
1292 | 1293 | | |
1293 | 1294 | | |
1294 | 1295 | | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
1303 | 1310 | | |
1304 | 1311 | | |
1305 | 1312 | | |
| |||
0 commit comments