Merge "Ignore empty tasks when unfreezing recents list after timeout" into udc-dev
This commit is contained in:
@@ -338,7 +338,8 @@ class RecentTasks {
|
||||
synchronized (mService.mGlobalLock) {
|
||||
final Task focusedStack = mService.getTopDisplayFocusedRootTask();
|
||||
final Task topTask = focusedStack != null ? focusedStack.getTopMostTask() : null;
|
||||
resetFreezeTaskListReordering(topTask);
|
||||
final Task reorderToEndTask = topTask != null && topTask.hasChild() ? topTask : null;
|
||||
resetFreezeTaskListReordering(reorderToEndTask);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -924,6 +924,11 @@ public class RecentTasksTest extends WindowTestsBase {
|
||||
|
||||
@Test
|
||||
public void testFreezeTaskListOrder_timeout() {
|
||||
for (Task t : mTasks) {
|
||||
// Make all the tasks non-empty
|
||||
new ActivityBuilder(mAtm).setTask(t).build();
|
||||
}
|
||||
|
||||
// Add some tasks
|
||||
mRecentTasks.add(mTasks.get(0));
|
||||
mRecentTasks.add(mTasks.get(1));
|
||||
|
||||
Reference in New Issue
Block a user