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

Commit aed78b76 authored by Tony's avatar Tony
Browse files

Use sysui lib to determine if screen pinning is enabled

Bug: 70294936
Change-Id: Ie71984a1693ad2ffbb308a1830486511cb2c3577
parent 9c70e7e2
Loading
Loading
Loading
Loading
+295 B (108 KiB)

File changed.

No diff preview for this file type.

+1 −6
Original line number Diff line number Diff line
@@ -122,10 +122,6 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut

    public static class Pin extends TaskSystemShortcut {

        // Same as Settings.System.LOCK_TO_APP_ENABLED, which is hidden.
        // TODO use call from shared lib instead
        private static final String LOCK_TO_APP_ENABLED = "lock_to_app_enabled";

        private Handler mHandler;

        public Pin() {
@@ -139,8 +135,7 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut
            if (sysUiProxy == null) {
                return null;
            }
            if (Settings.System.getInt(launcher.getContentResolver(),
                    LOCK_TO_APP_ENABLED, 0) == 0) {
            if (!ActivityManagerWrapper.getInstance().isLockToAppEnabled()) {
                return null;
            }
            return view -> {