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

Commit 47b3588b authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Revert "Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause"

This reverts commit c2842d8f.

Reason for revert: CL broke TaplTestsLauncher3.testDevicePressMenu in 2-button mode

Change-Id: Idebda69a36b94686415434e8e3f158a8a7abc5bb
parent c2842d8f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -169,10 +169,6 @@ 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)) {
+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ 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;

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

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

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