Merge "Adding a comment for goHome()" into tm-qpr-dev am: 0dec527aae

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19994601

Change-Id: I05619d9401cde143c29ab923e44c932be499d6a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-09-20 09:14:40 +00:00
committed by Automerger Merge Worker
@@ -893,7 +893,14 @@ public final class LauncherInstrumentation {
}
/**
* Presses nav bar home button.
* Goes to home by swiping up in zero-button mode or pressing Home button.
* Calling it after another TAPL call is safe because all TAPL methods wait for the animations
* to finish.
* When calling it after a non-TAPL method, make sure that all animations have already
* completed, otherwise it may detect the current state (for example "Application" or "Home")
* incorrectly.
* The method expects either app or Launcher to be active when it's called. Other states, such
* as visible notification shade are not supported.
*
* @return the Workspace object.
*/
@@ -1894,8 +1901,9 @@ public final class LauncherInstrumentation {
/**
* Taps outside container to dismiss.
*
* @param container container to be dismissed
* @param tapRight tap on the right of the container if true, or left otherwise
* @param tapRight tap on the right of the container if true, or left otherwise
*/
void touchOutsideContainer(UiObject2 container, boolean tapRight) {
try (LauncherInstrumentation.Closable c = addContextLayer(