Merge "Fix NPE when deciding whether to defer task stack animation." into pi-dev
This commit is contained in:
@@ -1722,6 +1722,9 @@ public class TaskStack extends WindowContainer<Task> implements
|
||||
return true;
|
||||
}
|
||||
final Task homeTask = homeStack.getTopChild();
|
||||
if (homeTask == null) {
|
||||
return true;
|
||||
}
|
||||
final AppWindowToken homeApp = homeTask.getTopVisibleAppToken();
|
||||
if (!homeTask.isVisible() || homeApp == null) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user