Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4da3853 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 506d2d2a: am 39225289: Add empty ArrayList check.

* commit '506d2d2a32bff5813b7c1017145efa30673d6181':
  Add empty ArrayList check.
parents d4c18540 d426d955
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4852,8 +4852,11 @@ public class WindowManagerService extends IWindowManager.Stub
        // Where to start adding?
        for (int taskNdx = 0; taskNdx < numTasks; ++taskNdx) {
            AppTokenList tokens = tasks.get(taskNdx).mAppTokens;
            int pos = findAppWindowInsertionPointLocked(tokens.get(0));
            final int numTokens = tokens.size();
            if (numTokens == 0) {
                continue;
            }
            int pos = findAppWindowInsertionPointLocked(tokens.get(0));
            for (int tokenNdx = 0; tokenNdx < numTokens; ++tokenNdx) {
                final AppWindowToken wtoken = tokens.get(tokenNdx);
                if (wtoken != null) {