mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
Do not clear values if the player didn't actually change
This commit is contained in:
@@ -176,6 +176,11 @@ public class MprisActivity extends ActionBarActivity {
|
|||||||
|
|
||||||
if (pos >= playerList.size()) return;
|
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
|
//Clear values from previous player
|
||||||
((TextView) findViewById(R.id.now_playing_textview)).setText("");
|
((TextView) findViewById(R.id.now_playing_textview)).setText("");
|
||||||
|
Reference in New Issue
Block a user