Fix synchronization on a non-final field 'sInstanceLock' by making
it final. Bug: 62466540 Change-Id: I28a1c53435d761089b2ee7742d31a0cb482b8afd
This commit is contained in:
1 parent
606d3836a5
commit
bf3366f0d9
1 file changed
+1
-3
@@ -25,11 +25,9 @@ import android.graphics.Rect;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.support.annotation.Nullable;
|
||||
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.shortcuts.ShortcutInfoCompat;
|
||||
import com.android.launcher3.util.PackageUserKey;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public abstract class LauncherAppsCompat {
|
||||
@@ -50,7 +48,7 @@ public abstract class LauncherAppsCompat {
|
||||
}
|
||||
|
||||
private static LauncherAppsCompat sInstance;
|
||||
private static Object sInstanceLock = new Object();
|
||||
private static final Object sInstanceLock = new Object();
|
||||
|
||||
public static LauncherAppsCompat getInstance(Context context) {
|
||||
synchronized (sInstanceLock) {
|
||||
|
||||
Reference in new issue
Block a user