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

Commit 719154dc authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Don't set enabled on TaskMenu view if shortcut not available

Bug: 188195640
Test: No crash when opening tasks when SPLIT_SELECT flag on.
Change-Id: I8f27e311cbb03ea37dcbd63d209b6652f02074af
parent b605d1d7
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);
            }