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

Commit 113377d8 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Tap on recents button twice to go to last app

Fixes: 190660016
Test: Tapped on recents twice and saw last app.
Tapped on recents and tried to tap on other app
icons and none of them launched.

Change-Id: Ie89f1ec0464f194087dc07ab99deb8223ab6ddb8
parent 96592ded
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -93,6 +93,12 @@ public class TaskbarDragLayerController {
         */
        public void updateInsetsTouchability(InsetsInfo insetsInfo) {
            insetsInfo.touchableRegion.setEmpty();
            if (mActivity.canShowNavButtons()) {
                // Always have nav buttons be touchable
                mControllers.navbarButtonsViewController.addVisibleButtonsRegion(
                        mTaskbarDragLayer, insetsInfo.touchableRegion);
            }

            if (mTaskbarDragLayer.getAlpha() < AlphaUpdateListener.ALPHA_CUTOFF_THRESHOLD) {
                // Let touches pass through us.
                insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_REGION);
@@ -105,8 +111,6 @@ public class TaskbarDragLayerController {
                // Buttons are visible, take over the full taskbar area
                insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_FRAME);
            } else {
                mControllers.navbarButtonsViewController.addVisibleButtonsRegion(
                        mTaskbarDragLayer, insetsInfo.touchableRegion);
                insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_REGION);
            }
        }
+4 −2
Original line number Diff line number Diff line
@@ -94,8 +94,10 @@ public class TaskbarNavButtonController {
    }

    private void navigateToOverview() {
        mService.getOverviewCommandHelper()
                .addCommand(OverviewCommandHelper.TYPE_SHOW);
        int commandType = mService.getOverviewCommandHelper().isOverviewVisible() ?
                OverviewCommandHelper.TYPE_TOGGLE :
                OverviewCommandHelper.TYPE_SHOW;
        mService.getOverviewCommandHelper().addCommand(commandType);
    }

    private void executeBack() {
+5 −0
Original line number Diff line number Diff line
@@ -136,6 +136,11 @@ public class OverviewCommandHelper {
        }
    }

    public boolean isOverviewVisible() {
        BaseActivityInterface activityInterface =
                mOverviewComponentObserver.getActivityInterface();
        return activityInterface.getVisibleRecentsView() != null;
    }
    /**
     * Executes the task and returns true if next task can be executed. If false, then the next
     * task is deferred until {@link #scheduleNextTask} is called