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

Commit 32674f02 authored by Makoto Onuki's avatar Makoto Onuki Committed by android-build-merger
Browse files

Merge "Correctly set thread group to UiThread's thread." into oc-dev am: 479bb430

am: 1d209ebc

Change-Id: If23d7726075d98f60d4743179f2ecb52b3775f8d
parents f6af6e90 1d209ebc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -33,8 +33,13 @@ public final class UiThread extends ServiceThread {

    private UiThread() {
        super("android.ui", Process.THREAD_PRIORITY_FOREGROUND, false /*allowIo*/);
    }

    @Override
    public void run() {
        // Make sure UiThread is in the fg stune boost group
        Process.setThreadGroup(Process.myTid(), Process.THREAD_GROUP_TOP_APP);
        super.run();
    }

    private static void ensureThreadLocked() {