Skip to content

Commit

Permalink
Invoke on UI thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
follesoe committed Sep 22, 2011
1 parent 1434369 commit 16525b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MonoBus/Views/BusStopTable.cs
Expand Up @@ -53,7 +53,7 @@ public BusStopDataSource(BusStopTable tvc)
_busBuddy = new BusBuddy();
_busBuddy.GetBusStops(response => {
_tvc.Response = response;
_tvc.TableView.ReloadData();
InvokeOnMainThread(() => _tvc.TableView.ReloadData());
});
}

Expand Down
2 changes: 1 addition & 1 deletion MonoBus/Views/DeparturesTable.cs
Expand Up @@ -48,7 +48,7 @@ public void LoadDepartures()

_busBuddy.GetDepartures(_tvc.SelectedBusStop.BusStopId, response => {
_tvc.Response = response;
_tvc.TableView.ReloadData();
InvokeOnMainThread(() => _tvc.TableView.ReloadData());
});
}

Expand Down

0 comments on commit 16525b2

Please sign in to comment.