fixed resume method to stop playing music when hided and them resumed