Merge "Don't set enabled on TaskMenu view if shortcut not available" into sc-dev am: 887bfef157 am: 675d845b00

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14637304

Change-Id: I19dbcbef058cfce4cee1fd87885ca96488eeb311
This commit is contained in:
Vinit Nayak
2021-05-19 19:33:15 +00:00
committed by Automerger Merge Worker
@@ -231,7 +231,7 @@ public interface TaskShortcutFactory {
@Override
public SystemShortcut getShortcut(BaseDraggingActivity activity, TaskView taskView) {
SystemShortcut shortcut = super.getShortcut(activity, taskView);
if (FeatureFlags.ENABLE_SPLIT_SELECT.get()) {
if (shortcut != null && FeatureFlags.ENABLE_SPLIT_SELECT.get()) {
// Disable if there's only one recent app for split screen
shortcut.setEnabled(taskView.getRecentsView().getTaskViewCount() > 1);
}