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

am: 3b016f5445

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

Change-Id: I925edd07ead39be9ec34c013ad00d34f0d600c06
This commit is contained in:
Chris Wren
2016-04-29 18:29:50 +00:00
committed by android-build-merger

View File

@@ -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);
}
/**