2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 05:37:43 +00:00

Do not clear values if the player didn't actually change

This commit is contained in:
Albert Vaca 2016-09-29 14:15:31 +02:00
parent 77e38da2d9
commit b35ce0f821

View File

@ -176,6 +176,11 @@ public class MprisActivity extends ActionBarActivity {
if (pos >= playerList.size()) return;
String player = playerList.get(pos);
if (player.equals(mpris.getPlayer())) {
return; //Player hasn't actually changed
}
mpris.setPlayer(player);
//Clear values from previous player
((TextView) findViewById(R.id.now_playing_textview)).setText("");