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

Commit e1200c40 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

* commit '8da25ef7':
  Fix inability to add all tiles.

Change-Id: Ic035a82116f5b619326858c3f4c4ce3bff45f41c
parents aabdff83 8da25ef7
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);