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

Commit 92c94332 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable recents onboarding for test automation"

parents 436c70c9 e8f1d36a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -211,11 +211,13 @@ public class RecentsOnboarding {
    }

    /**
     * @return True unless setprop has been set to false, or we're in demo mode.
     * @return True unless setprop has been set to false, we're in demo mode, or running tests in
     * automation.
     */
    private boolean shouldShow() {
        return SystemProperties.getBoolean("persist.quickstep.onboarding.enabled",
                !(mContext.getSystemService(UserManager.class)).isDemoUser());
                !(mContext.getSystemService(UserManager.class)).isDemoUser() &&
                !ActivityManager.isRunningInTestHarness());
    }

    public void hide(boolean animate) {