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

Commit 3b016f54 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "close a potential race condition in registerAsSystemService" into nyc-dev

parents ede4fcea b66a16d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -764,9 +764,9 @@ public abstract class NotificationListenerService extends Service {
        }
        mSystemContext = context;
        INotificationManager noMan = getNotificationInterface();
        noMan.registerListener(mWrapper, componentName, currentUser);
        mCurrentUser = currentUser;
        mHandler = new MyHandler(context.getMainLooper());
        mCurrentUser = currentUser;
        noMan.registerListener(mWrapper, componentName, currentUser);
    }

    /**