From f814e63cd085267d70f238c5b47b824bc072766d Mon Sep 17 00:00:00 2001 From: Long Zheng Date: Tue, 1 Apr 2014 20:06:00 +1100 Subject: [PATCH] Accidentally got rid of loading screen on trains departing --- PTVGlass/TrainDepartureActivity.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PTVGlass/TrainDepartureActivity.cs b/PTVGlass/TrainDepartureActivity.cs index f01a55b..d4b83de 100644 --- a/PTVGlass/TrainDepartureActivity.cs +++ b/PTVGlass/TrainDepartureActivity.cs @@ -24,6 +24,14 @@ protected override async void OnCreate (Bundle bundle) { base.OnCreate (bundle); + // Show loading screen + SetContentView (Resource.Layout.LoadingScreen); + var loadingText = FindViewById (Resource.Id.loading_text); + loadingText.SetText(Resource.String.getting_departures); // set loading text + var progressBar = FindViewById (Resource.Id.indeterm_slider); + progressBar.StartIndeterminate (); // start indeterminate progress bar + + // get station ID from intent int intentStationId = int.Parse(Intent.GetStringExtra ("stationId"));