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

Commit 619c0ef5 authored by Aaron Liu's avatar Aaron Liu Committed by Android (Google) Code Review
Browse files

Merge "Revert "Ensure that disable is enqueued"" into main

parents b841a2b8 1c2c4a3a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -615,7 +615,14 @@ public class CommandQueue extends IStatusBar.Stub implements
            args.argi2 = state1;
            args.argi3 = state2;
            args.argi4 = animate ? 1 : 0;
            mHandler.obtainMessage(MSG_DISABLE, args).sendToTarget();
            Message msg = mHandler.obtainMessage(MSG_DISABLE, args);
            if (Looper.myLooper() == mHandler.getLooper()) {
                // If its the right looper execute immediately so hides can be handled quickly.
                mHandler.handleMessage(msg);
                msg.recycle();
            } else {
                msg.sendToTarget();
            }
        }
    }