Merge "close a potential race condition in registerAsSystemService" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3b016f5445
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user