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

Commit 4d0838ce authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Iterate over a copy in QSTileHost#changeTiles" into rvc-dev am: 4e618138

Change-Id: I46a7f9f2ba8e233a3f9863ba8c6a1230ea8506b0
parents 74c35c35 4e618138
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -346,10 +346,10 @@ public class QSTileHost implements QSHost, Tunable, PluginListener<QSFactory>, D
    }

    public void changeTiles(List<String> previousTiles, List<String> newTiles) {
        final int NP = previousTiles.size();
        final int NA = newTiles.size();
        final List<String> copy = new ArrayList<>(previousTiles);
        final int NP = copy.size();
        for (int i = 0; i < NP; i++) {
            String tileSpec = previousTiles.get(i);
            String tileSpec = copy.get(i);
            if (!tileSpec.startsWith(CustomTile.PREFIX)) continue;
            if (!newTiles.contains(tileSpec)) {
                ComponentName component = CustomTile.getComponentFromSpec(tileSpec);