fix erratic suspend/resume on android