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

Commit 98e063e6 authored by Rajeev Kumar's avatar Rajeev Kumar Committed by Android (Google) Code Review
Browse files

Merge "Fix synchronization on a non-final field 'sInstanceLock' by making it...

Merge "Fix synchronization on a non-final field 'sInstanceLock' by making it final." into ub-launcher3-dorval-polish
parents 76a3d918 bf3366f0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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) {