Merge "use FgThread.class instead of UiThread.class for lock object"
am: e2fddf56a4
Change-Id: Ia6d2154bf46d61ea55ef7e41abd538b1c71972b5
This commit is contained in:
@@ -45,14 +45,14 @@ public final class FgThread extends ServiceThread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static FgThread get() {
|
public static FgThread get() {
|
||||||
synchronized (UiThread.class) {
|
synchronized (FgThread.class) {
|
||||||
ensureThreadLocked();
|
ensureThreadLocked();
|
||||||
return sInstance;
|
return sInstance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Handler getHandler() {
|
public static Handler getHandler() {
|
||||||
synchronized (UiThread.class) {
|
synchronized (FgThread.class) {
|
||||||
ensureThreadLocked();
|
ensureThreadLocked();
|
||||||
return sHandler;
|
return sHandler;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user