Merge "Don't set enabled on TaskMenu view if shortcut not available" into sc-dev am: 887bfef157
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14637304 Change-Id: Ic257537c32a25d43098b520c4a9a352260404e10
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user