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

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

Merge "Ensure that disable is enqueued" into main

parents 31edeefa da388d69
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -615,14 +615,7 @@ public class CommandQueue extends IStatusBar.Stub implements
            args.argi2 = state1;
            args.argi3 = state2;
            args.argi4 = animate ? 1 : 0;
            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();
            }
            mHandler.obtainMessage(MSG_DISABLE, args).sendToTarget();
        }
    }