mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Merge "Don't set enabled on TaskMenu view if shortcut not available" into sc-dev
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