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

Skip to content
Commit a2adc346 authored by Rambo Wang's avatar Rambo Wang
Browse files

Always call unbindService no matter what bindService returns

According to Android API reference, unbindService should be called
as long as bindService was called (no matter succeed or not).

CarrierServiceBindHelper only call unbindService when bindService
succeed, this may leaks the ServiceConnection.

mServiceBound, which is used to mark if the bindService succeed, is
removed. We don't need it to conditionally call unbindService now.

Bug: 201423849
Test: CarrierServiceBindHelperTest
Change-Id: Icfb3de7154bf6f3324ce39d71a0b8cb484b52605
parent ac620cd0
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