"I was walking down the street this morning when I saw the accident"
If this is changed into indirect speech"He told Sam he had been walking down…"
does the part “when I saw the accident” change into indirect speech as well or does it stay the same?