Merge "close a potential race condition in registerAsSystemService" into nyc-dev am: 3b016f5445 am: ca925148e2
am: 7f25112629
* commit '7f25112629abe549d1e9d6bda9ef98e6ee4ff1b9':
close a potential race condition in registerAsSystemService
Change-Id: Ic9d102dcf92377e332430418bf68cbfd08d0d124
This commit is contained in:
@@ -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