Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2aab1177 authored by Soroosh Mariooryad's avatar Soroosh Mariooryad
Browse files

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

Test: RunSettingsRoboTests
Fixes: 66719302

Change-Id: I5e99a279d5c72409b8ca982148396f7d1e0d46b7
parent 17acd3d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {