They switched a year earlier than mandated. There’s a very good chance it was actually already in the works.
Timing probably matters: when most of the market already agrees you can't wait for the last group, you have to strike before everyone defuses again.
And while I can imagine that apple had a plan here, the part that doesn't fit is that they protested the mandate. If this had no effect on their plans, why bother?