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

Commit e36a8b4e authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Fix status bar not hiding quickly" into oc-dev am: b0806f10

am: 637e0916

Change-Id: Ie86066cc7162620d5d89b20d5c1b92910f6c9766
parents d4072d2b 637e0916
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -171,7 +171,14 @@ public class CommandQueue extends IStatusBar.Stub {
            mDisable1 = state1;
            mDisable2 = state2;
            mHandler.removeMessages(MSG_DISABLE);
            mHandler.obtainMessage(MSG_DISABLE, state1, state2, animate).sendToTarget();
            Message msg = mHandler.obtainMessage(MSG_DISABLE, state1, state2, animate);
            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();
            }
        }
    }