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
Loading
Please register or sign in to comment