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

Commit 352e9f0b authored by John Reck's avatar John Reck
Browse files

Add missing Looper::setForThread

Unlike the Java Looper the native one requires manually
setting of the looper for a particular thread.

So... do that.

Fixes: 124467483
Test: really good guess
Change-Id: Iac9b4a052e79228aea5760262996729d8dadb1b8
parent ac4bccb2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -68,10 +68,12 @@ protected:
    void processQueue() { mQueue.process(); }

    virtual bool threadLoop() override {
        Looper::setForThread(mLooper);
        while (!exitPending()) {
            waitForWork();
            processQueue();
        }
        Looper::setForThread(nullptr);
        return false;
    }