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

Commit ca925148 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: I925edd07ead39be9ec34c013ad00d34f0d600c06
parents 84e00b4a 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);
    }

    /**