am 55bf965e: Merge "Compare binder instances when checking if listeners match." into jb-mr2-dev
* commit '55bf965e89df5986a7a988c2b1ec2cd9f01edb56': Compare binder instances when checking if listeners match.
This commit is contained in:
@@ -763,7 +763,8 @@ public class NotificationManagerService extends INotificationManager.Stub
|
||||
final int N = mListeners.size();
|
||||
for (int i=N-1; i>=0; i--) {
|
||||
final NotificationListenerInfo info = mListeners.get(i);
|
||||
if (info.listener == listener && info.userid == userid) {
|
||||
if (info.listener.asBinder() == listener.asBinder()
|
||||
&& info.userid == userid) {
|
||||
mListeners.remove(i);
|
||||
if (info.connection != null) {
|
||||
mContext.unbindService(info.connection);
|
||||
|
||||
Reference in New Issue
Block a user