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

Commit f24c375c authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Fix inability to add all tiles." into nyc-dev am: 8da25ef7

am: e1200c40

* commit 'e1200c40':
  Fix inability to add all tiles.

Change-Id: Ifaab7da4e2a2b3f49b269b197cdaaabe01fd5a2a
parents 7256a3f4 e1200c40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta

    public void saveSpecs(QSTileHost host) {
        List<String> newSpecs = new ArrayList<>();
        for (int i = 0; mTiles.get(i) != null; i++) {
        for (int i = 0; i < mTiles.size() && mTiles.get(i) != null; i++) {
            newSpecs.add(mTiles.get(i).spec);
        }
        host.changeTiles(mCurrentSpecs, newSpecs);