Merge "Reset "allowAllRotations" when the physical display changed."