Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c38f472b authored by Winson Chung's avatar Winson Chung
Browse files

Update calls to obtain DragEvent to match method signature change

Bug: 334934117
Test: atest ActionHandlerTest
Change-Id: I9ec8abe6865a04698f7996d6582dcc448ee1178c
parent b9401d01
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -541,7 +541,7 @@ public class ActionHandlerTest {
    public void testDragAndDrop_OnReadOnlyRoot() throws Exception {
        assumeTrue(VersionUtils.isAtLeastS());
        RootInfo root = new RootInfo(); // root by default has no SUPPORT_CREATE flag
        DragEvent event = DragEvent.obtain(DragEvent.ACTION_DROP, 1, 1, 0, 0, null, null, null,
        DragEvent event = DragEvent.obtain(DragEvent.ACTION_DROP, 1, 1, 0, 0, 0, null, null, null,
                null, null, true);
        assertFalse(mHandler.dropOn(event, root));
    }
@@ -549,7 +549,7 @@ public class ActionHandlerTest {
    @Test
    public void testDragAndDrop_OnLibraryRoot() throws Exception {
        assumeTrue(VersionUtils.isAtLeastS());
        DragEvent event = DragEvent.obtain(DragEvent.ACTION_DROP, 1, 1, 0, 0, null, null, null,
        DragEvent event = DragEvent.obtain(DragEvent.ACTION_DROP, 1, 1, 0, 0, 0, null, null, null,
                null, null, true);
        assertFalse(mHandler.dropOn(event, TestProvidersAccess.RECENTS));
    }
@@ -562,7 +562,7 @@ public class ActionHandlerTest {
        // our Clipper is getting the original CipData passed in.
        Object localState = new Object();
        ClipData clipData = ClipDatas.createTestClipData();
        DragEvent event = DragEvent.obtain(DragEvent.ACTION_DROP, 1, 1, 0, 0, localState, null,
        DragEvent event = DragEvent.obtain(DragEvent.ACTION_DROP, 1, 1, 0, 0, 0, localState, null,
                clipData, null, null, true);

        mHandler.dropOn(event, TestProvidersAccess.DOWNLOADS);