Convert GroupTask and DesktopTask to Kotlin
This is the first step in refactoring GroupTask to remove the assumption about `task1` being always present. Bug: 388593902 Test: m Flag: EXEMPT pure refactor with no behavior change. Change-Id: Ib79d9f2ad7f028b971e2509d846b50fa220bee26
This commit is contained in:
1 parent
d64bb9392c
commit
5ca0a51c60
6 files changed
+120
-206
No files matched your search
@@ -269,7 +269,7 @@ public final class KeyboardQuickSwitchController implements
|
||||
DesktopTask desktopTask = findDesktopTask(tasks);
|
||||
|
||||
if (desktopTask != null) {
|
||||
mTasks = desktopTask.tasks.stream()
|
||||
mTasks = desktopTask.getTasks().stream()
|
||||
.map(GroupTask::new)
|
||||
.filter(task -> !shouldExcludeTask(task, taskIdsToExclude))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Reference in new issue
Block a user