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

Commit 17b70e9a authored by Matt Garnes's avatar Matt Garnes
Browse files

Do not reload settings for changing state to All Apps.

When getStateChangeAnimation() is called, only reload settings if
leaving overview mode.

Change-Id: I9ee7330779b19bb73c1a30497065854ce9fc1162
(cherry picked from commit 8df1f021)
parent f934dab8
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -2284,9 +2284,6 @@ public class Workspace extends SmoothPagedView
            return null;
        }

        // Check to see if new Settings need to be taken
        reloadSettings();

        // Initialize animation arrays for the first time if necessary
        initAnimationArrays();

@@ -2317,6 +2314,11 @@ public class Workspace extends SmoothPagedView
        final boolean workspaceToOverview = (oldStateIsNormal && stateIsOverview);
        final boolean overviewToWorkspace = (oldStateIsOverview && stateIsNormal);

        if (overviewToWorkspace || overviewToAllApps) {
            // Check to see if new Settings need to be taken
            reloadSettings();
        }

        mNewScale = 1.0f;

        if (oldStateIsOverview) {