Improve automatic app interrupting when hiding