Remove event signaling logic from Launcher to the tests
Instead of throwing the event on the Launcher, now the test listens to changes in the view tree and when the condition is meet it stops the waiter. Bug: 352569050 Bug: 324261526 Test: IntegrationReorderWidgetsTest Flag: TEST_ONLY Change-Id: I94596429cb79af6b298281bd5cd4558e919736e2
This commit is contained in:
committed by
Sebastián Franco
parent
dd981d78b5
commit
899656a2a7
@@ -37,8 +37,6 @@ import com.android.launcher3.accessibility.DragViewStateAnnouncer;
|
||||
import com.android.launcher3.celllayout.CellLayoutLayoutParams;
|
||||
import com.android.launcher3.celllayout.CellPosMapper.CellPos;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.debug.TestEvent;
|
||||
import com.android.launcher3.debug.TestEventEmitter;
|
||||
import com.android.launcher3.dragndrop.DragLayer;
|
||||
import com.android.launcher3.keyboard.ViewGroupFocusHelper;
|
||||
import com.android.launcher3.logging.InstanceId;
|
||||
@@ -223,9 +221,6 @@ public class AppWidgetResizeFrame extends AbstractFloatingView implements View.O
|
||||
dl.addView(frame);
|
||||
frame.mIsOpen = true;
|
||||
frame.post(() -> frame.snapToWidget(false));
|
||||
TestEventEmitter.INSTANCE.get(widget.getContext()).sendEvent(
|
||||
TestEvent.RESIZE_FRAME_SHOWING
|
||||
);
|
||||
}
|
||||
|
||||
private void setCornerRadiusFromWidget() {
|
||||
|
||||
Reference in New Issue
Block a user