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

Commit 0841e93a authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Don't allow stashing in tests for now" into sc-v2-dev

parents daf42897 9c84d7f3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -114,7 +114,13 @@ public class TaskbarStashController {
     * Returns whether the user can manually stash the taskbar based on the current device state.
     */
    private boolean supportsStashing() {
        return !mActivity.isThreeButtonNav();
        return !mActivity.isThreeButtonNav()
                && (!Utilities.IS_RUNNING_IN_TEST_HARNESS || supportsStashingForTests());
    }

    private boolean supportsStashingForTests() {
        // TODO: enable this for tests that specifically check stash/unstash behavior.
        return false;
    }

    /**