Skip to content

Commit

Permalink
remove UI news method
Browse files Browse the repository at this point in the history
  • Loading branch information
mmathieum committed Nov 26, 2024
1 parent 5e3ba2e commit 2cb4790
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/java/org/mtransit/android/commons/data/News.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,13 @@ public boolean isUseful() {
}

@NonNull
public String getAuthorOneLine() {
if (TextUtils.isEmpty(this.authorUsername)) {
return this.authorName;
}
return this.authorName + " (" + this.authorUsername + ")";
public String getAuthorName() {
return authorName;
}

@Nullable
public String getAuthorUsername() {
return authorUsername;
}

@Nullable
Expand Down

0 comments on commit 2cb4790

Please sign in to comment.