Merge "AudioService: fix audio mode not reset to MODE_NORMAL"

This commit is contained in:
Eric Laurent
2020-04-09 18:52:02 +00:00
committed by Gerrit Code Review

View File

@@ -3357,7 +3357,15 @@ public class AudioService extends IAudioService.Stub
hdlr = h; hdlr = h;
// Remove from client list so that it is re-inserted at top of list // Remove from client list so that it is re-inserted at top of list
iter.remove(); iter.remove();
try {
hdlr.getBinder().unlinkToDeath(hdlr, 0); hdlr.getBinder().unlinkToDeath(hdlr, 0);
if (cb != hdlr.getBinder()){
hdlr = null;
}
} catch (NoSuchElementException e) {
hdlr = null;
Log.w(TAG, "link does not exist ...");
}
break; break;
} }
} }