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

Commit 0788cc8a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't take a lock on the UI thread."

parents 630c4d17 dc3f6d1c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -484,12 +484,13 @@ public class ShortcutService extends IShortcutService.Stub {
    final private IUidObserver mUidObserver = new IUidObserver.Stub() {
        @Override
        public void onUidStateChanged(int uid, int procState, long procStateSeq) {
            handleOnUidStateChanged(uid, procState);
            injectPostToHandler(() -> handleOnUidStateChanged(uid, procState));
        }

        @Override
        public void onUidGone(int uid, boolean disabled) {
            handleOnUidStateChanged(uid, ActivityManager.PROCESS_STATE_NONEXISTENT);
            injectPostToHandler(() ->
                    handleOnUidStateChanged(uid, ActivityManager.PROCESS_STATE_NONEXISTENT));
        }

        @Override