Bug 1045214 - [B2G][Gallery]Launching camera from gallery results in blank

viewfinder
This might be too much. Encapsulating an equal statement in a function.