Partially reverting waiting for animation when setting widget result
It flakes, i.e. sometimes the animation is not detected. Bug: 313926097 Flag: N/A Test: presubmit Change-Id: I829e4124879c3a3abe78762a8d04fcd0494f5b1a
This commit is contained in:
1 parent
0156324805
commit
286581ebf2
1 file changed
+1
-11
@@ -100,7 +100,7 @@ public class AddConfigWidgetTest extends AbstractLauncherUiTest {
|
||||
// Verify that the widget id is valid and bound
|
||||
assertNotNull(mAppWidgetManager.getAppWidgetInfo(mWidgetId));
|
||||
|
||||
setResultAndWaitForAnimation(acceptConfig);
|
||||
setResult(acceptConfig);
|
||||
if (acceptConfig) {
|
||||
Wait.atMost("", new WidgetSearchCondition(), DEFAULT_ACTIVITY_TIMEOUT, mLauncher);
|
||||
assertNotNull(mAppWidgetManager.getAppWidgetInfo(mWidgetId));
|
||||
@@ -117,16 +117,6 @@ public class AddConfigWidgetTest extends AbstractLauncherUiTest {
|
||||
success ? "clickOK" : "clickCancel"));
|
||||
}
|
||||
|
||||
private void setResultAndWaitForAnimation(boolean success) {
|
||||
if (mLauncher.isLauncher3()) {
|
||||
setResult(success);
|
||||
} else {
|
||||
mLauncher.executeAndWaitForWallpaperAnimation(
|
||||
() -> setResult(success),
|
||||
"setting widget coinfig result");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Condition for searching widget id
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user