Commit 43414349 by Sebastián Katzer

Prefer Editor#apply over commit

parent 4e6ec9bb
......@@ -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();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment