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

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