From cc5f29ca985060c74ba4eb97d174aa062fb311af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Mu=CC=88ller?= Date: Sat, 19 Mar 2022 14:51:39 +0100 Subject: [PATCH] fixed failed ultrasonic:ktlintMainSourceSetCheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Holger Mùˆller --- .../moire/ultrasonic/fragment/PlayerFragment.kt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt index 41f58117..80d58338 100644 --- a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt @@ -992,17 +992,20 @@ class PlayerFragment : ) currentSong!!.suffix else - String.format(Locale.ROOT, "%s > %s", currentSong!!.suffix, - currentSong!!.transcodedSuffix) + String.format( + Locale.ROOT, "%s > %s", currentSong!!.suffix, + currentSong!!.transcodedSuffix + ) val details: String = String.format( Util.appContext().getString(R.string.song_details_nowplaying), currentSong!!.genre, currentSong!!.year, currentSong!!.bitRate, fileFormat ) detailsTextView.text = details - if (Settings.showNowPlayingDetails) - detailsTextView.visibility = View.VISIBLE - else - detailsTextView.visibility = View.GONE + detailsTextView.visibility = + if (Settings.showNowPlayingDetails) + View.VISIBLE + else + View.GONE downloadTrackTextView.text = trackFormat downloadTotalDurationTextView.text = duration