* commit '47235e8b5ce6c622a1182933404cf5a17fcd35dc': 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