Merge pull request #1242 from lioncash/sync Android: Use apply() instead of commit() for SharedPreference changes.