Commit c38e0143 by Sebastián Katzer

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

parent e3842e41
......@@ -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;
......
......@@ -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) {}
......
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