Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F13305692
D164.1778733271.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D164.1778733271.diff
View Options
diff --git a/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.java b/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.java
--- a/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.java
+++ b/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.java
@@ -520,7 +520,7 @@
*/
private void updateMessage(){
String message = null;
- if (stopName != null && stopID != null && stopName.length() > 0) {
+ if (stopName != null && stopID != null && !stopName.isEmpty()) {
message = (stopID.concat(" - ").concat(stopName));
} else if(stopID!=null) {
message = stopID;
@@ -572,7 +572,8 @@
data.moveToFirst();
final String probableName = data.getString(colUserName);
stopIsInFavorites = true;
- stopName = probableName;
+ if (probableName != null && !probableName.isEmpty())
+ stopName = probableName; //set the stop
//update the message in the textview
updateMessage();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 14, 06:34 (18 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1899393
Default Alt Text
D164.1778733271.diff (1 KB)
Attached To
Mode
D164: Fix not showing the stop name if in favorites
Attached
Detach File
Event Timeline