From 0f88a3c9b6ffcdecf6231486a9ec1ec6f54f372f Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Jun 2016 14:53:01 +0200 Subject: [PATCH] clear the song and artist view when the player is destroyed --- .../java/com/simplemobiletools/musicplayer/MainActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/simplemobiletools/musicplayer/MainActivity.java b/app/src/main/java/com/simplemobiletools/musicplayer/MainActivity.java index 58b23c18..e1aaf97a 100644 --- a/app/src/main/java/com/simplemobiletools/musicplayer/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/musicplayer/MainActivity.java @@ -124,6 +124,9 @@ public class MainActivity extends AppCompatActivity if (song != null) { titleTV.setText(song.getTitle()); artistTV.setText(song.getArtist()); + } else { + titleTV.setText(""); + artistTV.setText(""); } }