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

Commit 70565c5e authored by Vinit Nayak's avatar Vinit Nayak Committed by Android (Google) Code Review
Browse files

Merge "Default to requesting command type TOGGLE for OverviewCommandHelper" into sc-v2-dev

parents 50820e1f e91e4f03
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -94,10 +94,7 @@ public class TaskbarNavButtonController {
    }

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

    private void executeBack() {
+0 −5
Original line number Diff line number Diff line
@@ -136,11 +136,6 @@ 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