* commit '6d3700b394c7137ef95580d35223a402a3dd0e7c': MountService listeners can not be unregistered
This commit is contained in:
@@ -1411,7 +1411,7 @@ class MountService extends IMountService.Stub
|
||||
public void unregisterListener(IMountServiceListener listener) {
|
||||
synchronized (mListeners) {
|
||||
for(MountServiceBinderListener bl : mListeners) {
|
||||
if (bl.mListener == listener) {
|
||||
if (bl.mListener.asBinder() == listener.asBinder()) {
|
||||
mListeners.remove(mListeners.indexOf(bl));
|
||||
listener.asBinder().unlinkToDeath(bl, 0);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user