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

Commit 7f251126 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: ca925148

* commit 'ca925148':
  close a potential race condition in registerAsSystemService

Change-Id: Ia9ca2f149180b700f2e679abcd62e5ccf60d4949
parents c4b753aa ca925148
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);
    }

    /**