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

Commit 5e6ccc0a authored by Sandeep Bandaru's avatar Sandeep Bandaru Committed by Android Build Coastguard Worker
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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f5d2d1465e862bbb3d08385187243d8a373d1ee1)
Merged-In: Ifcc081821f26d181038a9b8b2158dfadae4223af
Change-Id: Ifcc081821f26d181038a9b8b2158dfadae4223af
parent 8d580a71
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