commit | 6403086ec9d0d38fd70e40ed63a46f6c54a65c69 | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Mon Jul 19 12:44:36 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jul 19 12:44:36 2021 +0000 |
tree | 6e3088002e517b2052283aed940133ee9481dcdf | |
parent | f77fcfbb287fef34bead572ecf20e4b1d3739a37 [diff] | |
parent | 554b9879cc416b22c73d388d3d9488e6c3995361 [diff] |
Merge "Don't allow stashing in tests for now" into sc-v2-dev am: 0841e93a34 am: 554b9879cc Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15305566 Change-Id: Ic26a031e139f111c5eaee07b8fc5082a4b65a26f
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java index 6e20398..4ebdbd8 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java
@@ -114,7 +114,13 @@ * 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; } /**