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

Commit f630865f authored by Tony Mak's avatar Tony Mak
Browse files

Fix failed to launch work app shortcut when work mode is ON

FIX=70143968

Change-Id: If2a98843410dcef466cf4d7868b8564f07a49e30
parent 4d9d4542
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1969,7 +1969,8 @@ public class Launcher extends BaseActivity
        final ShortcutInfo shortcut = (ShortcutInfo) tag;

        if (shortcut.isDisabled()) {
            if ((shortcut.runtimeStatusFlags &
            final int disabledFlags = shortcut.runtimeStatusFlags & ShortcutInfo.FLAG_DISABLED_MASK;
            if ((disabledFlags &
                    ~FLAG_DISABLED_SUSPENDED &
                    ~FLAG_DISABLED_QUIET_USER) == 0) {
                // If the app is only disabled because of the above flags, launch activity anyway.