summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author yangbingqian <yangbingqian@xiaomi.com> 2017-05-30 22:15:29 +0000
committer android-build-merger <android-build-merger@google.com> 2017-05-30 22:15:29 +0000
commited5a28f213aa9bcd27cf1397d55cd00d208176dd (patch)
treec3fe911ef0259542f0e36265e58e7ec3d85a91cc
parented71faa233cdc93a2b30a04ae1571b499341193f (diff)
parent9ad7ced250044edff1a90e3e9754443d778e7b7a (diff)
Merge "use FgThread.class instead of UiThread.class for lock object" am: e2fddf56a4 am: a7d45cf3f0 am: 26d6431106
am: 9ad7ced250 Change-Id: If9ce77f713a473e7224142d289e29c5003617c1b
-rw-r--r--services/core/java/com/android/server/FgThread.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/FgThread.java b/services/core/java/com/android/server/FgThread.java
index 5f85cbac21d5..18fb4778c2a7 100644
--- a/services/core/java/com/android/server/FgThread.java
+++ b/services/core/java/com/android/server/FgThread.java
@@ -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;
}