Skip to content

Commit

Permalink
Add Delay display, optimize part of the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorModi committed Feb 14, 2024
1 parent a4557f9 commit 6c9af1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/statusbar/finder/MusicListenerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,13 @@ private Notification buildLrcNotification(LyricsChanged.Data data) {
contentTextResult = String.format("Result: %s - %s", mCurrentResult.second.resultInfo.getTitle(),
mCurrentResult.second.resultInfo.getArtist());
if (mCurrentResult.second.resultInfo.getAlbum() != null) {
contentTextResult += String.format(" - %s", mCurrentResult.second.resultInfo.getAlbum());
contentTextResult += " - " + mCurrentResult.second.resultInfo.getAlbum();
}
String contentTextLyric = String.format("Lyric: %s", data.getLyric());
if (data.getTranslatedLyric() != null) {
contentTextLyric += String.format("\nTranslatedLyric: %s", data.getTranslatedLyric());
contentTextLyric += "\nTranslatedLyric: " + data.getTranslatedLyric();
}
contentTextLyric += "\nLyricsDelay: " + data.getDelay();
contentTextLyric += "\nLyricsSource: " + mCurrentResult.second.mSource;
builder.setContentText(contentTextResult + "\n" + contentTextLyric);
builder.setStyle(new NotificationCompat.BigTextStyle().bigText(contentTextResult + "\n" + contentTextLyric))
Expand Down

0 comments on commit 6c9af1d

Please sign in to comment.