@Override public int getDuration() { if (musicService != null && musicBound && musicService.isPlaying()) { return musicService.getSongDuration(); } else { return 0; } }