Page MenuHomeGitPull.it

D164.1726831452.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D164.1726831452.diff

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

Mime Type
text/plain
Expires
Fri, Sep 20, 13:24 (13 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
606160
Default Alt Text
D164.1726831452.diff (1 KB)

Event Timeline