It sounds like a repair. Even though you did more than just patch the damage, changing the flooring because of damage is part of the repair.
An example of when it would be considered an improvement would be, if the floor in the kitchen was damaged, but you took the opportunity to upgrade the flooring in the entire apartment. The flooring in the kitchen would be part of the repair but the flooring in the rest of the apartment would be an improvement to depreciate.