When students focus more on their devices than on the teacher or lesson at hand, they miss out on critical learning opportunities.