Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d068135f authored by Chris Wren's avatar Chris Wren Committed by android-build-merger
Browse files

Merge "close a potential race condition in registerAsSystemService" into nyc-dev am: 3b016f54

am: 43f8ea7a

* commit '43f8ea7a':
  close a potential race condition in registerAsSystemService

Change-Id: Ieaa6b4587626e06d053bf19c95c7cf3d272d1867
parents c4b753aa 43f8ea7a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }

    /**