Merge "close a potential race condition in registerAsSystemService" into nyc-dev am: 3b016f5445

am: ca925148e2

* commit 'ca925148e2086e5f06458091459bdc667268c0f1':
  close a potential race condition in registerAsSystemService

Change-Id: Ia9ca2f149180b700f2e679abcd62e5ccf60d4949
This commit is contained in:
Chris Wren
2016-04-29 18:32:03 +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);
}
/**