Fix ANR issue caused by sharedpref commit() on suggestion event logging
Test: RunSettingsRoboTests Fixes: 66719302 Change-Id: I5e99a279d5c72409b8ca982148396f7d1e0d46b7
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