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

Commit 6885598b authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Hide window swapping behind a flag

Bug: 27859522
Change-Id: I0e1e578d2d91f7572b0978dbb12ed143acbdf1e1
parent 03ebf508
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ public class DividerView extends FrameLayout implements OnTouchListener,
    private static final String TAG = "DividerView";

    private static final int TASK_POSITION_SAME = Integer.MAX_VALUE;
    private static final boolean SWAPPING_ENABLED = false;

    /**
     * How much the background gets scaled when we are in the minimized dock state.
@@ -213,6 +214,7 @@ public class DividerView extends FrameLayout implements OnTouchListener,
        mGestureDetector = new GestureDetector(mContext, new SimpleOnGestureListener() {
            @Override
            public boolean onSingleTapUp(MotionEvent e) {
                if (SWAPPING_ENABLED) {
                    updateDockSide();
                    SystemServicesProxy ssp = Recents.getSystemServices();
                    if (mDockSide != WindowManager.DOCKED_INVALID
@@ -220,6 +222,7 @@ public class DividerView extends FrameLayout implements OnTouchListener,
                        mWindowManagerProxy.swapTasks();
                        return true;
                    }
                }
                return false;
            }
        });