am 2a393a99: Merge "MountService: unlink death notification when unregistering listeners"
* commit '2a393a99dc9612516dd9efbf74b6b5924d7d608a': MountService: unlink death notification when unregistering listeners
This commit is contained in:
committed by
Android Git Automerger
commit
60c7721210
@@ -1218,6 +1218,7 @@ class MountService extends IMountService.Stub
|
|||||||
for(MountServiceBinderListener bl : mListeners) {
|
for(MountServiceBinderListener bl : mListeners) {
|
||||||
if (bl.mListener == listener) {
|
if (bl.mListener == listener) {
|
||||||
mListeners.remove(mListeners.indexOf(bl));
|
mListeners.remove(mListeners.indexOf(bl));
|
||||||
|
listener.asBinder().unlinkToDeath(bl, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user