Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
......
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