Restrict iOS fixed header code to overlays with fixed headers

This allows pinch zooming in the media viewer overlay
Bug: 69414

Change-Id: Ic89c869daa1d4f2bd3e57da1fc2ba4c9366b9bc1
Merge "Restrict iOS fixed header code to overlays with fixed headers"