replaced visibility by isVisible thanks to @tzugen
Signed-off-by: Holger Müller <github@euhm.de>
This commit is contained in:
parent
acf6c5a681
commit
8bec74e66a
|
@ -989,10 +989,8 @@ class PlayerFragment :
|
||||||
|
|
||||||
if (Settings.showNowPlayingDetails) {
|
if (Settings.showNowPlayingDetails) {
|
||||||
genreTextView.text = currentSong!!.genre
|
genreTextView.text = currentSong!!.genre
|
||||||
genreTextView.visibility =
|
genreTextView.isVisible =
|
||||||
if (currentSong!!.genre != null && currentSong!!.genre!!.isNotBlank()
|
(currentSong!!.genre != null && currentSong!!.genre!!.isNotBlank());
|
||||||
) View.VISIBLE
|
|
||||||
else View.GONE
|
|
||||||
|
|
||||||
var bitRate: String = ""
|
var bitRate: String = ""
|
||||||
if (currentSong!!.bitRate != null && currentSong!!.bitRate!! > 0)
|
if (currentSong!!.bitRate != null && currentSong!!.bitRate!! > 0)
|
||||||
|
@ -1004,10 +1002,10 @@ class PlayerFragment :
|
||||||
Locale.ROOT, "%s %s",
|
Locale.ROOT, "%s %s",
|
||||||
bitRate, currentSong!!.suffix
|
bitRate, currentSong!!.suffix
|
||||||
)
|
)
|
||||||
bitrateFormatTextView.visibility = View.VISIBLE
|
bitrateFormatTextView.isVisible = true
|
||||||
} else {
|
} else {
|
||||||
genreTextView.visibility = View.GONE
|
genreTextView.isVisible = false
|
||||||
bitrateFormatTextView.visibility = View.GONE
|
bitrateFormatTextView.isVisible = false
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadTrackTextView.text = trackFormat
|
downloadTrackTextView.text = trackFormat
|
||||||
|
|
Loading…
Reference in New Issue