Began basic local storage logic of sites

This commit is contained in:
Aidan Follestad 2016-07-30 03:04:32 -05:00
parent b2a6a46c62
commit c508c36930

View file

@ -65,6 +65,10 @@ public class ServerAdapter extends RecyclerView.Adapter<ServerAdapter.ServerVH>
}
public void set(ServerModel[] models) {
if (models == null || models.length == 0) {
mServers.clear();
return;
}
mServers = new ArrayList<>(models.length);
Collections.addAll(mServers, models);
notifyDataSetChanged();