Merge "Fix ANR issue caused by sharedpref commit() on suggestion event logging" into oc-mr1-dev am: 0193e69597
am: 73679c124f
Change-Id: I25949dd1c2bdf31ec07cd3b963ac6b693cf3a0e4
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user