Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F11448501
D208.1773639364.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D208.1773639364.diff
View Options
diff --git a/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt b/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt
--- a/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt
+++ b/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt
@@ -267,7 +267,11 @@
updateFragmentData(it)
} else{
progressBar.visibility=View.INVISIBLE
- loadingMessageTextView.text = getString(R.string.no_bus_stop_have_this_name)
+ // Avoid showing this ugly message if we have found the stop, clearly it exists but GTT doesn't provide arrival times
+ if (stopName==null)
+ loadingMessageTextView.text = getString(R.string.no_bus_stop_have_this_name)
+ else
+ loadingMessageTextView.text = getString(R.string.no_arrivals_stop)
}
}
diff --git a/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt b/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt
--- a/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt
+++ b/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt
@@ -51,7 +51,7 @@
// Equivalente del doInBackground nell'AsyncTask
val recursionHelper = RecursionHelper(fetchers.toTypedArray())
- var resultPalina = Palina(stopId)
+ var resultPalina : Palina? = null
val stringBuilder = StringBuilder()
for (f in fetchers) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 06:36 (13 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1750916
Default Alt Text
D208.1773639364.diff (1 KB)
Attached To
Mode
D208: Change message in arrivals when the stop name is found
Attached
Detach File
Event Timeline
Log In to Comment