Use new SharedPreferences$Editor.apply instead of commit.

apply is the new async version when the caller doesn't care about the
return value, but is otherwise identical in observable effects.

BUG=2978683

Change-Id: I82086fc4501da53266802f95bebc624a7217fd8b
2 files changed