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

Commit 3a0de4f4 authored by Christian Petersson's avatar Christian Petersson Committed by kmobs
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 58130bfb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -315,7 +315,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
@@ -678,6 +678,7 @@ public class WindowManagerService extends IWindowManager.Stub
        }

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

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