I went to primary school in 1999-2008 and it was the same for me. After that I started my secondary education in business school in 2008 and there were basically zero restrictions on smartphone use. Smartphones probably became ubiquitous in primary school after that too, but this law seems to also target secondary schools which sounds stricter than it used to be.