Merge "Disable long press recents whenever overview service is bound" into pi-dev

This commit is contained in:
Winson Chung
2018-03-27 16:43:55 +00:00
committed by Android (Google) Code Review

View File

@@ -926,7 +926,9 @@ public class NavigationBarFragment extends Fragment implements Callbacks {
private boolean onLongPressRecents() { private boolean onLongPressRecents() {
if (mRecents == null || !ActivityManager.supportsMultiWindow(getContext()) if (mRecents == null || !ActivityManager.supportsMultiWindow(getContext())
|| !mDivider.getView().getSnapAlgorithm().isSplitScreenFeasible() || !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; return false;
} }