Clearing sharedpreferences when switching provider.

The "commit" was missing.