Commit Shared Preference.