Android: Use apply instead of commit for applying SharedPreference changes

This will apply changes asynchronously, so it gets rid of some blocking IO.
It probably doesn't matter, but is considered good practice.