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 { ...@@ -47,7 +47,7 @@ public class LocalNotificationReceiver extends BroadcastReceiver {
try { try {
args = new JSONObject(bundle.getString(OPTIONS)); args = new JSONObject(bundle.getString(OPTIONS));
options = new LocalNotificationOptions(args); options = new LocalNotificationOptions(args, context);
} catch (JSONException e) {} } catch (JSONException e) {}
this.context = context; this.context = context;
......
...@@ -48,7 +48,7 @@ public class LocalNotificationRestore extends BroadcastReceiver { ...@@ -48,7 +48,7 @@ public class LocalNotificationRestore extends BroadcastReceiver {
try { try {
args = new JSONObject(alarms.getString(alarmId, "")); args = new JSONObject(alarms.getString(alarmId, ""));
options = new LocalNotificationOptions(args); options = new LocalNotificationOptions(args, context);
LocalNotification.add(options); LocalNotification.add(options);
} catch (JSONException e) {} } 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