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

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

Merge "Allow touches on Workspace during transition from Overview" into ub-launcher3-master

parents de301593 ca23b981
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ import android.view.Surface;
import android.widget.FrameLayout;

import com.android.launcher3.BaseQuickstepLauncher;
import com.android.launcher3.Hotseat;
import com.android.launcher3.LauncherState;
import com.android.launcher3.statehandlers.DepthController;
import com.android.launcher3.statemanager.StateManager.StateListener;
@@ -177,14 +176,8 @@ public class LauncherRecentsView extends RecentsView<BaseQuickstepLauncher>

    @Override
    protected boolean shouldStealTouchFromSiblingsBelow(MotionEvent ev) {
        if (ev.getAction() == MotionEvent.ACTION_DOWN) {
            // Allow touches to go through to the hotseat.
            Hotseat hotseat = mActivity.getHotseat();
            boolean touchingHotseat = hotseat.isShown()
                    && mActivity.getDragLayer().isEventOverView(hotseat, ev, this);
            return !touchingHotseat;
        }
        return super.shouldStealTouchFromSiblingsBelow(ev);
        return mActivity.getStateManager().getState().overviewUi
                && super.shouldStealTouchFromSiblingsBelow(ev);
    }

    @Override
+0 −7
Original line number Diff line number Diff line
@@ -1175,13 +1175,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
        computeScrollHelper(false);
    }

    @Override
    protected void determineScrollingStart(MotionEvent ev, float touchSlopScale) {
        if (!isSwitchingState()) {
            super.determineScrollingStart(ev, touchSlopScale);
        }
    }

    @Override
    public void announceForAccessibility(CharSequence text) {
        // Don't announce if apps is on top of us.