Merge "MountService: unlink death notification when unregistering listeners"
This commit is contained in:
@@ -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