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

Commit f5d2d146 authored by Sandeep Bandaru's avatar Sandeep Bandaru
Browse files

Add onBindingDied callback for service connection.

As seen in b/428217291#comment4.
When a ServiceConnection is in a "DEAD" state, any subsequent calls to bindService() using that same ServiceConnection instance will not establish a new connection to the service. 

To re-establish a connection to the service after a ServiceConnection has entered the "DEAD" state, we need to first unbind the dead connection by calling unbindService(). After unbinding, we can then successfully call bindService() again.

Bug: 424695730
Test: locally verified
Flag: EXEMPT bugfix
Change-Id: Ifcc081821f26d181038a9b8b2158dfadae4223af
parent 16842cac
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