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

Commit e6fd77ba authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Use correct SparseArray access method when iterating over it.

The current code works with a single display, because that display will
have id 0, so the old code will work (get(0) will return that display).

Bug: 26089885
Change-Id: If685c0ff006f353e6d56fd144acbce4d7f1e835b
parent 233c1c57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -782,7 +782,7 @@ public class WindowAnimator {
        SurfaceControl.openTransaction();
        try {
            for (int i = mService.mDisplayContents.size() - 1; i >= 0; i--) {
                DisplayContent display = mService.mDisplayContents.get(i);
                DisplayContent display = mService.mDisplayContents.valueAt(i);
                final WindowList windows = mService.getWindowListLocked(display.getDisplayId());
                for (int j = windows.size() - 1; j >= 0; j--) {
                    windows.get(j).maybeRemoveReplacedWindow();