From 899656a2a742805222bdc9f33fb8273e2b921d7c Mon Sep 17 00:00:00 2001 From: Sebastian Franco Date: Thu, 29 Aug 2024 15:23:28 -0700 Subject: [PATCH] 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 --- src/com/android/launcher3/AppWidgetResizeFrame.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/com/android/launcher3/AppWidgetResizeFrame.java b/src/com/android/launcher3/AppWidgetResizeFrame.java index ef56246136..b51e850c04 100644 --- a/src/com/android/launcher3/AppWidgetResizeFrame.java +++ b/src/com/android/launcher3/AppWidgetResizeFrame.java @@ -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() {