andreasgal/gaia — pull request #1000 by davidflanagan (2012-03-26 08:20:39+00:00)
Title: experimental camera visibility fix

This is a possible fix for https://github.com/andreasgal/gaia/issues/994

My dev environment is completely broken, though, so I have not tested it.

Another approach (better?) would be to restore visibilitychange messages to the homescreen so the camera can track whether it is visible that way. Note, however, that if we do that, the existing visibility change tracking code that is in the camera app (and is deleted by this pull) is broken: it calls init() repeatedly, which registers event handlers over and over.