Commit 0957f280 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix artist display in audio player header

parent 7fe1f526
......@@ -44,7 +44,6 @@
android:singleLine="true"
android:ellipsize="marquee"
android:scrollHorizontally="true"
android:text="@string/artist"
android:textColor="?attr/font_light"
android:background="#00000000"
android:textSize="14sp"
......
......@@ -51,11 +51,10 @@ public class HeaderMediaSwitcher extends AudioMediaSwitcher {
titleView.setText(title);
titleView.setSelected(true);
boolean hasArtist = TextUtils.isEmpty(artist);
if (hasArtist)
artistView.setText(artist);
boolean hasArtist = !TextUtils.isEmpty(artist);
artistView.setText(artist);
artistView.setSelected(hasArtist);
artistView.setVisibility(hasArtist ? GONE : VISIBLE);
artistView.setVisibility(hasArtist ? VISIBLE : GONE);
addView(v);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment