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

Commit 5f8c9a4e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause"...

Merge "Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause" into ub-launcher3-master
parents ca16911b c2842d8f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -169,6 +169,10 @@ public class PopupContainerWithArrow<T extends BaseDraggingActivity> extends Arr

    @Override
    public boolean onControllerInterceptTouchEvent(MotionEvent ev) {
        if (ev.getY() > (mLauncher.getDragLayer().getHeight()
                - mLauncher.getDeviceProfile().getInsets().bottom)) {
            return false;
        }
        if (ev.getAction() == MotionEvent.ACTION_DOWN) {
            BaseDragLayer dl = getPopupContainer();
            if (!dl.isEventOverView(this, ev)) {
+0 −2
Original line number Diff line number Diff line
@@ -42,7 +42,6 @@ import com.android.launcher3.widget.WidgetsRecyclerView;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

@@ -122,7 +121,6 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
    }

    @Test
    @Ignore
    public void testPressHomeOnAllAppsContextMenu() throws Exception {
        final AllApps allApps = mLauncher.getWorkspace().switchToAllApps();
        allApps.freeze();
+1 −3
Original line number Diff line number Diff line
@@ -663,9 +663,7 @@ public final class LauncherInstrumentation {
                    mDevice.waitForIdle();

                    if (getNavigationModel() == NavigationModel.TWO_BUTTON) {
                        if (hasLauncherObject(CONTEXT_MENU_RES_ID) ||
                                hasLauncherObject(WIDGETS_RES_ID)
                                        && !mDevice.isNaturalOrientation()) {
                        if (hasLauncherObject(WIDGETS_RES_ID) && !mDevice.isNaturalOrientation()) {
                            expectEvent(TestProtocol.SEQUENCE_MAIN, EVENT_PILFER_POINTERS);
                        }
                    }