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

Skip to content
Commit 259aa4ec authored by Shijian Li's avatar Shijian Li
Browse files

Handle external call updates during ringing in InCallWakeLockController.

In b/215559767, we changed the logic so that, for an HFP call, we firtly
mark them as a regular call, so that telecom stack will keep ringing.
And only if the user decided to pick up the call, we mark the external
call property depending on where this call is picked up. However,
telecom stack didn't consider that the call's external state would be
changed during ringing phase, so:

1. onCallAdded - The call is not an external call, so the telecom stack
   holds the wakelock and keeps ringing.
2. onCallStateChanged - The call is picked up, but since now the call is
   marked as external. We are not releasing the wake lock.

This patch captures the external call state change, and trigger
handleWakeLock again.

Bug: 220283618
Test: atest TelecomUnitTests:com.android.server.telecom.tests.InCallWakeLockControllerTest
Change-Id: If7861a8cbcaf7fbbc37c71d63d5f378c4e2e80cd
parent 5273e037
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