Merge "Prevent NPE in dispatchUserSwitch" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
340105677e
@@ -1061,7 +1061,9 @@ final class UserController {
|
||||
try {
|
||||
// Prepend with unique prefix to guarantee that keys are unique
|
||||
final String name = "#" + i + " " + mUserSwitchObservers.getBroadcastCookie(i);
|
||||
mCurWaitingUserSwitchCallbacks.add(name);
|
||||
synchronized (mService) {
|
||||
curWaitingUserSwitchCallbacks.add(name);
|
||||
}
|
||||
final IRemoteCallback callback = new IRemoteCallback.Stub() {
|
||||
@Override
|
||||
public void sendResult(Bundle data) throws RemoteException {
|
||||
|
||||
Reference in New Issue
Block a user