Merge "Ignore exception when checking isRotationLocked()" into main