Commit 43414349 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Prefer Editor#apply over commit

parent 4e6ec9bb
Loading
Loading
Loading
Loading
+3 −3
Changes for src/android/LocalNotification.java: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ public class LocalNotification extends CordovaPlugin {

        if (alarmId != null) {
            editor.putString(alarmId, args.toString());
            editor.commit();
            editor.apply();
        }
    }

@@ -262,7 +262,7 @@ public class LocalNotification extends CordovaPlugin {

        if (alarmId != null) {
            editor.remove(alarmId);
            editor.commit();
            editor.apply();
        }
    }

@@ -273,7 +273,7 @@ public class LocalNotification extends CordovaPlugin {
        Editor editor = getSharedPreferences().edit();

        editor.clear();
        editor.commit();
        editor.apply();
    }

    /**