Merge "Adding a comment for goHome()" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-09-20 08:38:01 +00:00
committed by Android (Google) Code Review
@@ -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(