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
This commit is contained in:
Winson Chung
2018-03-26 17:27:19 -07:00
parent f9e302704a
commit 074c4344f5

View File

@@ -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;
}