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

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

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

Merge "Revert "Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause"" into ub-launcher3-master
parents 3fc9db9d 47b3588b
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);
                        }
                    }