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

am: b1d16f8e52

Change-Id: I6999074e8354dd6fc7a9529d08722f2a3a65ff6e
This commit is contained in:
Winson Chung
2018-03-27 17:06:51 +00:00
committed by android-build-merger

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