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

This commit is contained in:
Alex Chau
2021-07-19 12:15:43 +00:00
committed by Android (Google) Code Review
@@ -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;
}
/**