Prevent position topmost task to top
Home stack was reordered to bottom after user switched. So, we were able to navigate through all tasks by back key. Position topmost task to top doesn't seem necessary, but had unintentionally moved its parent to top. Bug: 148087585 Test: switch user and go back Change-Id: If0230a7ef5a118b442bea72e7a35defe9d4dea75
This commit is contained in:
@@ -2008,10 +2008,6 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
|
||||
for (int stackNdx = display.getStackCount() - 1; stackNdx >= 0; --stackNdx) {
|
||||
final ActivityStack stack = display.getStackAt(stackNdx);
|
||||
stack.switchUser(userId);
|
||||
Task task = stack.getTopMostTask();
|
||||
if (task != null && task != stack) {
|
||||
stack.positionChildAtTop(task);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user