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

Commit 60661f1e authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Android (Google) Code Review
Browse files

Merge "SharedPreferences commit -> apply." into gingerbread

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


    /**
    /**