Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment