Merge "Fix a bug in drop region." into rvc-dev

This commit is contained in:
Evan Rosky
2020-06-23 21:26:59 +00:00
committed by Android (Google) Code Review

View File

@@ -2934,7 +2934,7 @@ class Task extends WindowContainer<WindowContainer> {
final Task rootTask = getRootTask();
final Task topNonOrgTask =
rootTask.mCreatedByOrganizer ? rootTask.getTopMostTask() : rootTask;
if (isDescendantOf(topNonOrgTask)) {
if (this == topNonOrgTask || isDescendantOf(topNonOrgTask)) {
return false;
}
}