Bug 957709 - Patch to prevent Camera/Gallery switch buttons from being hammered.

Update patch for 957709 after djf's review.

Updated PR 15845 following review.

Clean up.

Fixed typo in comments.

Added comment for clarity in camera.js.