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

Commit 404f5359 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[WallpaperManagerService]...

Merge "[WallpaperManagerService] java.lang.ArrayIndexOutOfBoundsException--Array index out of range: 0" into main
parents 935fa589 930c982a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1075,11 +1075,15 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
        void forEachDisplayConnector(Consumer<DisplayConnector> action) {
            synchronized (mLock) {
                for (int i = mDisplayConnector.size() - 1; i >= 0; i--) {
                    // Double check the index. Some actions, such as connectLocked, may revert the
                    // wallpaper and clear the list of display connectors in case of failure.
                    if (i < mDisplayConnector.size()) {
                        final DisplayConnector connector = mDisplayConnector.valueAt(i);
                        action.accept(connector);
                    }
                }
            }
        }

        int getConnectedEngineSize() {
            int engineSize = 0;