mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Changing Condition to an interface to allow using lambdas
Change-Id: Ib7ad6a45d2ce556f843cd3a9767001904707dced
This commit is contained in:
@@ -126,12 +126,8 @@ public class AddConfigWidgetTest extends AbstractLauncherUiTest {
|
||||
assertNotNull(mAppWidgetManager.getAppWidgetInfo(mWidgetId));
|
||||
} else {
|
||||
// Verify that the widget id is deleted.
|
||||
assertTrue(Wait.atMost(new Condition() {
|
||||
@Override
|
||||
public boolean isTrue() throws Throwable {
|
||||
return mAppWidgetManager.getAppWidgetInfo(mWidgetId) == null;
|
||||
}
|
||||
}, DEFAULT_ACTIVITY_TIMEOUT));
|
||||
assertTrue(Wait.atMost(() -> mAppWidgetManager.getAppWidgetInfo(mWidgetId) == null,
|
||||
DEFAULT_ACTIVITY_TIMEOUT));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,8 +141,7 @@ public class AddConfigWidgetTest extends AbstractLauncherUiTest {
|
||||
/**
|
||||
* Condition for searching widget id
|
||||
*/
|
||||
private class WidgetSearchCondition extends Condition
|
||||
implements Workspace.ItemOperator {
|
||||
private class WidgetSearchCondition implements Condition, Workspace.ItemOperator {
|
||||
|
||||
@Override
|
||||
public boolean isTrue() throws Throwable {
|
||||
|
||||
Reference in New Issue
Block a user