Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Accidentally got rid of loading screen on trains departing
Browse files Browse the repository at this point in the history
  • Loading branch information
longzheng committed Apr 1, 2014
1 parent a7882b5 commit f814e63
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PTVGlass/TrainDepartureActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ protected override async void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);

// Show loading screen
SetContentView (Resource.Layout.LoadingScreen);
var loadingText = FindViewById<TextView> (Resource.Id.loading_text);
loadingText.SetText(Resource.String.getting_departures); // set loading text
var progressBar = FindViewById<SliderView> (Resource.Id.indeterm_slider);
progressBar.StartIndeterminate (); // start indeterminate progress bar


// get station ID from intent
int intentStationId = int.Parse(Intent.GetStringExtra ("stationId"));

Expand Down

0 comments on commit f814e63

Please sign in to comment.