Stop onDimensionSwitch from being called twice.