Refactor TestEmitter and it doesn't need to be MainThreadInitializedObject

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I30e7c3c165db698785e9e4d7e2256ab061ff71a2
This commit is contained in:
Anushree Ganjam committed 2025-02-13 15:20:17 -08:00
1 parent 0d9c54fc51
commit 7128c6fcfb
8 files changed
+99 -116

No files matched your search

+2 -2
View File
@@ -80,8 +80,8 @@ import com.android.launcher3.celllayout.CellLayoutLayoutParams;
import com.android.launcher3.celllayout.CellPosMapper;
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.debug.TestEventEmitter.TestEvent;
import com.android.launcher3.dot.FolderDotInfo;
import com.android.launcher3.dragndrop.DragController;
import com.android.launcher3.dragndrop.DragLayer;
@@ -2255,7 +2255,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
if (d.stateAnnouncer != null && !droppedOnOriginalCell) {
d.stateAnnouncer.completeAction(R.string.item_moved);
}
TestEventEmitter.INSTANCE.get(getContext()).sendEvent(TestEvent.WORKSPACE_ON_DROP);
TestEventEmitter.sendEvent(TestEvent.WORKSPACE_ON_DROP);
}
@Nullable