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

Unverified Commit 0a087e69 authored by Michael Bestas's avatar Michael Bestas
Browse files

fixup! Trebuchet: allow disabling workspace edit

Change-Id: I62be85efc3c44cb04cc325c2b7ec6ceace06734c
parent e3f418d5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.app.ActivityManager;
import android.app.Person;
import android.app.WallpaperManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.LauncherActivityInfo;
import android.content.pm.LauncherApps;
import android.content.pm.ShortcutInfo;
@@ -734,7 +735,7 @@ public final class Utilities {
    }

    public static boolean isWorkspaceEditAllowed(Context context) {
        SharedPreferences prefs = getPrefs(context.getApplicationContext());
        SharedPreferences prefs = LauncherPrefs.getPrefs(context.getApplicationContext());
        return !prefs.getBoolean(InvariantDeviceProfile.KEY_WORKSPACE_LOCK, false);
    }
}