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

Skip to content
Commit 647f6d93 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

MR2ProviderServiceProxy: Change onBindingDied() behavior

When onBindingDied() is called, the current active connection
should be cleared. Also, internal states of the proxy such as
routes and sessions should also be cleared. Also, the Javadoc of
onBindingDied() says that we need to unbind and rebind in order to
activate the connection again.

Therefore, this CL makes the onBindingDied() unbind from the service
and rebind if necessary.

Bug: 198235819
Test: atest MediaRouter2Test#testTransferToSuccess --rerun-until-failure
      atest MediaRouter2Test#testTransferCallbackIsNotCalledAfterUnregistered
        --rerun-until-failure
      atest MediaRouter2Test --rerun-until-failure
Change-Id: I8c80a20b887bde9862f4936c42c99634cb22e352
parent b2b2a5d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment