mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Fix overview actions tapl test failure" into tm-qpr-dev
This commit is contained in:
@@ -1123,6 +1123,16 @@ public final class LauncherInstrumentation {
|
||||
return object;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
UiObject2 findObjectInContainer(UiObject2 container, String resName) {
|
||||
try {
|
||||
return container.findObject(getLauncherObjectSelector(resName));
|
||||
} catch (StaleObjectException e) {
|
||||
fail("The container disappeared from screen");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
UiObject2 findObjectInContainer(UiObject2 container, BySelector selector) {
|
||||
try {
|
||||
|
||||
@@ -182,6 +182,6 @@ public final class OverviewTask {
|
||||
}
|
||||
|
||||
boolean isTaskSplit() {
|
||||
return mTask.hasObject(By.res("bottomright_snapshot"));
|
||||
return mLauncher.findObjectInContainer(mTask.getParent(), "bottomright_snapshot") != null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user