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:
@@ -764,9 +764,9 @@ public abstract class NotificationListenerService extends Service {
|
|||||||
}
|
}
|
||||||
mSystemContext = context;
|
mSystemContext = context;
|
||||||
INotificationManager noMan = getNotificationInterface();
|
INotificationManager noMan = getNotificationInterface();
|
||||||
noMan.registerListener(mWrapper, componentName, currentUser);
|
|
||||||
mCurrentUser = currentUser;
|
|
||||||
mHandler = new MyHandler(context.getMainLooper());
|
mHandler = new MyHandler(context.getMainLooper());
|
||||||
|
mCurrentUser = currentUser;
|
||||||
|
noMan.registerListener(mWrapper, componentName, currentUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user