public void Update(List <Package> packages) { this.packages.Clear(); this.packages.AddRange(packages); adapter.NotifyDataSetChanged(); }
void UpdatePackages() { if (packageAdapter == null) { return; } RunOnUiThread(delegate { packageArray.Clear(); packageArray.AddRange(Packages); packageAdapter.NotifyDataSetChanged(); }); }