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

Commit 43f8ea7a authored by Chris Wren's avatar Chris Wren Committed by android-build-merger
Browse files

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

am: 3b016f54

* commit '3b016f54':
  close a potential race condition in registerAsSystemService

Change-Id: I8198bcf39af5d14b17b2f2d8155e17b98fd20214
parents cfe52d8f 3b016f54
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);
    }

    /**