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

Commit 074c4344 authored by Winson Chung's avatar Winson Chung
Browse files

Disable long press recents whenever overview service is bound

- In both the quickstep and fallback cases, we'll rely on the UI to
  enter split screen and not long press recents button.

Bug: 76438197
Test: Manual, long press recents with fallback activity, ensure nothing
      happens

Change-Id: If3f367632c5c9ffae520285c694c71054b02f209
parent f9e30270
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -926,7 +926,9 @@ public class NavigationBarFragment extends Fragment implements Callbacks {
    private boolean onLongPressRecents() {
        if (mRecents == null || !ActivityManager.supportsMultiWindow(getContext())
                || !mDivider.getView().getSnapAlgorithm().isSplitScreenFeasible()
                || Recents.getConfiguration().isLowRamDevice) {
                || Recents.getConfiguration().isLowRamDevice
                // If we are connected to the overview service, then disable the recents button
                || mOverviewProxyService.getProxy() != null) {
            return false;
        }