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

Commit ef57c80c authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Extend unfreeze recents duration when running under tests" into main

parents 9f28de9c 8007fb06
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -301,9 +301,12 @@ class RecentTasks {
        }

        // Always update the reordering time when this is called to ensure that the timeout
        // is reset
        // is reset.  Extend this duration when running in tests.
        final long timeout = ActivityManager.isRunningInUserTestHarness()
                ? mFreezeTaskListTimeoutMs * 10
                : mFreezeTaskListTimeoutMs;
        mService.mH.removeCallbacks(mResetFreezeTaskListOnTimeoutRunnable);
        mService.mH.postDelayed(mResetFreezeTaskListOnTimeoutRunnable, mFreezeTaskListTimeoutMs);
        mService.mH.postDelayed(mResetFreezeTaskListOnTimeoutRunnable, timeout);
    }

    /**