mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Merge "Fix synchronization on a non-final field 'sInstanceLock' by making it final." into ub-launcher3-dorval-polish
This commit is contained in:
@@ -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