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

Commit 15f66ce1 authored by Christian Petersson's avatar Christian Petersson Committed by Kenneth Andersson
Browse files

Fix that InputDeviceReaderThread that got killed during startup

InputDeviceReaderThread could be killed if a key or touch event
was received before initiation made by PolicyThread was made. To
solve this, the start call for the InputDeviceReader thread was
delayed until initalization of the PolicyThread was done in
the WindowManagerService.

Change-Id: Ifa7de7ccfadd66ecc2b14c6273e9be32b8e0cb4a
parent e99c0125
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -299,7 +299,9 @@ public abstract class KeyInputQueue {
        mLast = new QueuedEvent();
        mFirst.next = mLast;
        mLast.prev = mFirst;
    }

    void start() {
        mThread.start();
    }

+1 −0
Original line number Diff line number Diff line
@@ -621,6 +621,7 @@ public class WindowManagerService extends IWindowManager.Stub
        }

        mInputThread.start();
        mQueue.start();

        // Add ourself to the Watchdog monitors.
        Watchdog.getInstance().addMonitor(this);