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

Commit c6098ef1 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

SharedPreferences commit -> apply.

Change-Id: I3c54bcd78ed74107840254a9861dc68f9bec3cc8
parent 13af16f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -420,7 +420,7 @@ public class Alarms {
            SharedPreferences.Editor ed = prefs.edit();
            ed.putInt(PREF_SNOOZE_ID, id);
            ed.putLong(PREF_SNOOZE_TIME, time);
            ed.commit();
            ed.apply();
        }
        // Set the next alert after updating the snooze.
        setNextAlert(context);
@@ -457,7 +457,7 @@ public class Alarms {
        final SharedPreferences.Editor ed = prefs.edit();
        ed.remove(PREF_SNOOZE_ID);
        ed.remove(PREF_SNOOZE_TIME);
        ed.commit();
        ed.apply();
    };

    /**