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

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

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

* commit '75a17dc774ef812ee667f0578d9dc72db3355f3f':
  Add empty ArrayList check.
parents 94326e32 d4da3853
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) {