Fix ANR issue caused by sharedpref commit() on suggestion event logging

Test: RunSettingsRoboTests
Fixes: 66719302

Change-Id: I5e99a279d5c72409b8ca982148396f7d1e0d46b7
This commit is contained in:
Soroosh Mariooryad
2017-09-22 16:10:02 -07:00
parent 17acd3d1c8
commit 2aab11772d

View File

@@ -82,7 +82,7 @@ public class EventStore {
}
private void writePref(String prefKey, long value) {
mSharedPrefs.edit().putLong(prefKey, value).commit();
mSharedPrefs.edit().putLong(prefKey, value).apply();
}
private long readPref(String prefKey, Long defaultValue) {