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

This commit is contained in:
TreeHugger Robot
2016-04-29 18:25:04 +00:00
committed by Android (Google) Code Review

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