Merge "DO NOT MERGE Add empty ArrayList check." into klp-modular-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
645e017ca5
@@ -4855,8 +4855,11 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
// Where to start adding?
|
// Where to start adding?
|
||||||
for (int taskNdx = 0; taskNdx < numTasks; ++taskNdx) {
|
for (int taskNdx = 0; taskNdx < numTasks; ++taskNdx) {
|
||||||
AppTokenList tokens = tasks.get(taskNdx).mAppTokens;
|
AppTokenList tokens = tasks.get(taskNdx).mAppTokens;
|
||||||
int pos = findAppWindowInsertionPointLocked(tokens.get(0));
|
|
||||||
final int numTokens = tokens.size();
|
final int numTokens = tokens.size();
|
||||||
|
if (numTokens == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int pos = findAppWindowInsertionPointLocked(tokens.get(0));
|
||||||
for (int tokenNdx = 0; tokenNdx < numTokens; ++tokenNdx) {
|
for (int tokenNdx = 0; tokenNdx < numTokens; ++tokenNdx) {
|
||||||
final AppWindowToken wtoken = tokens.get(tokenNdx);
|
final AppWindowToken wtoken = tokens.get(tokenNdx);
|
||||||
if (wtoken != null) {
|
if (wtoken != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user