diff options
| author | 2024-02-20 17:23:10 +0000 | |
|---|---|---|
| committer | 2024-02-20 17:23:10 +0000 | |
| commit | cdd695ade2ba9ae06f066a0aaac76bbd0f92b855 (patch) | |
| tree | dba0031dc570f9794d894460e5343cb2e006f1a1 | |
| parent | 31edeefad9a58dacb68c74e52bf733db0e1dbdf4 (diff) | |
| parent | da388d69fe0bcbeed80d9020bf9eb6b897607e43 (diff) | |
Merge "Ensure that disable is enqueued" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java b/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java index ca19f71bd391..3908edec7da5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java @@ -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(); } } |