Turn off the idle timer when the application is in the foreground