Mobile scrolling fix

This commit is contained in:
Anuken
2019-09-15 15:47:42 -04:00
parent f1bf8a0f1a
commit 681347e933
3 changed files with 29 additions and 4 deletions
@@ -134,7 +134,7 @@ public class MusicControl{
/** Plays a music track once and only once. If something is already playing, does nothing.*/
private void playOnce(@NonNull Music music){
if(current != null) return; //do not interrupt already-playing tracks
if(current != null || music == null) return; //do not interrupt already-playing tracks
//save last random track played to prevent duplicates
lastRandomPlayed = music;