Patch to throttle launching of Gallery activity (Bug 957709)

Patched Gallery for 1.4.
Merge pull request #15876 from justindarc/bug957709

Patch to throttle launching of Gallery activity (Bug 957709)