Never. There has never been a time when it was OK to use a phone in class. What happened is A) Some kids do take their phone out and play with them and either get caught or not B) Something happens and kids record it aka school fight videos. C) giant moral panic that has very little basis in reality.