timer.restart();
}
}
});
final Player player = app.getPlayer();
player.addListener(new PlayerListener() {
@Override
public void onEvent(PlayerEvent e) {
if (nowPlayingOnly && e.getEventCode() == PlayerEvent.PlayerEventCode.FILE_OPENED) {
track = player.getTrack();
timer.restart();