Merge "Fix ANR issue caused by sharedpref commit() on suggestion event logging" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-10-03 18:31:56 +00:00
committed by Android (Google) Code Review

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) {