Commit e40d9499 authored by Mike Sheldon's avatar Mike Sheldon

Reset currentSong to 0 in LibreDroid after retuning

parent 60a120d6
......@@ -309,6 +309,7 @@ public class LibreService extends Service implements OnBufferingUpdateListener,
String type = params[0];
String result = "";
String station;
try {
station = URLEncoder.encode(params[1], "UTF-8");
result = LibreService.this.httpGet("http://alpha.libre.fm/radio/adjust.php?session=" + LibreService.this.sessionKey + "&url=librefm://" + type + "/" + station);
......@@ -324,6 +325,7 @@ public class LibreService extends Service implements OnBufferingUpdateListener,
return;
}
LibreService.this.currentSong = 0;
LibreService.this.playlist = new Playlist();
if (output.split(" ")[0].equals("FAILED")) {
......
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