Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 887bfef1 authored by Vinit Nayak's avatar Vinit Nayak Committed by Android (Google) Code Review
Browse files

Merge "Don't set enabled on TaskMenu view if shortcut not available" into sc-dev

parents b1114a98 719154dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
            }