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

Commit f814e63

Browse files
committed
Accidentally got rid of loading screen on trains departing
1 parent a7882b5 commit f814e63

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

PTVGlass/TrainDepartureActivity.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ protected override async void OnCreate (Bundle bundle)
2424
{
2525
base.OnCreate (bundle);
2626

27+
// Show loading screen
28+
SetContentView (Resource.Layout.LoadingScreen);
29+
var loadingText = FindViewById<TextView> (Resource.Id.loading_text);
30+
loadingText.SetText(Resource.String.getting_departures); // set loading text
31+
var progressBar = FindViewById<SliderView> (Resource.Id.indeterm_slider);
32+
progressBar.StartIndeterminate (); // start indeterminate progress bar
33+
34+
2735
// get station ID from intent
2836
int intentStationId = int.Parse(Intent.GetStringExtra ("stationId"));
2937

0 commit comments

Comments
 (0)