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

Commit 4d17d0a6 authored by Pierre Barbier de Reuille's avatar Pierre Barbier de Reuille Committed by Alina Zaidi
Browse files

Restore the use of the Desktop Limiter

A previous CL inverted the condition on whether or not desktop mode is
enabled.

Fix: 355645098
Test: Build and test
Flag: EXEMPT (trivial bug fix)
Change-Id: Id681a482ec00d25bd52b98c3c966aa7567efd027
parent e47b907e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -569,7 +569,7 @@ public abstract class WMShellModule {
            ShellTaskOrganizer shellTaskOrganizer) {
        int maxTaskLimit = DesktopModeStatus.getMaxTaskLimit(context);
        if (!DesktopModeStatus.canEnterDesktopMode(context)
                || DESKTOP_WINDOWING_MODE.isEnabled(context)
                || !DESKTOP_WINDOWING_MODE.isEnabled(context)
                || maxTaskLimit <= 0) {
            return Optional.empty();
        }