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

Commit 6ecf9af8 authored by yangbingqian's avatar yangbingqian
Browse files

use FgThread.class instead of UiThread.class for lock object



As is seen, UiThread/IoThread/DisplayThread/BackgroundThread
all use itself class for lock object. And for FgThread,
FgThread.class should be used for lock object

Test: null

Change-Id: I56e46fab33ff78d26b3e5197500764c763dba042
Signed-off-by: default avataryangbingqian <yangbingqian@xiaomi.com>
parent 52bc790f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -45,14 +45,14 @@ public final class FgThread extends ServiceThread {
    }

    public static FgThread get() {
        synchronized (UiThread.class) {
        synchronized (FgThread.class) {
            ensureThreadLocked();
            return sInstance;
        }
    }

    public static Handler getHandler() {
        synchronized (UiThread.class) {
        synchronized (FgThread.class) {
            ensureThreadLocked();
            return sHandler;
        }