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

Commit dd535466 authored by Tony Wickham's avatar Tony Wickham
Browse files

Don't show Pin option when an locked to app is active

Also isLockToAppEnabled is renamed to isScreenPinningEnabled

Bug: 72799389
Change-Id: I46d4c57e3719f7401887e79cbb7397e23f162e44
parent 22ab784d
Loading
Loading
Loading
Loading
+57 B (114 KiB)

File changed.

No diff preview for this file type.

+5 −1
Original line number Diff line number Diff line
@@ -182,7 +182,11 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut
            if (sysUiProxy == null) {
                return null;
            }
            if (!ActivityManagerWrapper.getInstance().isLockToAppEnabled()) {
            if (!ActivityManagerWrapper.getInstance().isScreenPinningEnabled()) {
                return null;
            }
            if (ActivityManagerWrapper.getInstance().isLockToAppActive()) {
                // We shouldn't be able to pin while an app is locked.
                return null;
            }
            return view -> {