fix android pause/resume crash