Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0789904 authored by Andrew Wilson's avatar Andrew Wilson Committed by Android Git Automerger
Browse files

am f25b876c: am 55bf965e: Merge "Compare binder instances when checking if...

am f25b876c: am 55bf965e: Merge "Compare binder instances when checking if listeners match." into jb-mr2-dev

* commit 'f25b876c':
  Compare binder instances when checking if listeners match.
parents 60809404 f25b876c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);