Prevent app from initiliazing everytime it gets back on the foreground, fixes #32