If Riley felt he wanted to take over for the Heat, then fine. He should have done it earlier after their season ended. It would have given Van Gundy time to latch on somewhere else. But he's doing it now, when all of the good coaching gigs are fill.
A classless move. His ego is getting the best of him.