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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user