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

The context is needed to prevent the app from crashing after it was removed from recent list.

parent e3842e41
Loading
Loading
Loading
Loading
+1 −1
Changes for src/android/LocalNotificationReceiver.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ public class LocalNotificationReceiver extends BroadcastReceiver {

		try {
			args    = new JSONObject(bundle.getString(OPTIONS));
			options = new LocalNotificationOptions(args);
			options = new LocalNotificationOptions(args, context);
		} catch (JSONException e) {}

		this.context = context;
+1 −1
Changes for src/android/LocalNotificationRestore.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ public class LocalNotificationRestore extends BroadcastReceiver {

			try {
				args    = new JSONObject(alarms.getString(alarmId, ""));
				options = new LocalNotificationOptions(args);
				options = new LocalNotificationOptions(args, context);

				LocalNotification.add(options);
			} catch (JSONException e) {}