Commit d275c40c by Sebastián Katzer

Damn...

parent ec0f79da
...@@ -210,8 +210,8 @@ public class LocalNotification extends CordovaPlugin { ...@@ -210,8 +210,8 @@ public class LocalNotification extends CordovaPlugin {
* Set the application context if not already set. * Set the application context if not already set.
*/ */
public static void setContext (Context context) { public static void setContext (Context context) {
if (this.context == null) { if (LocalNotification.context == null) {
this.context = context; LocalNotification.context = context;
} }
} }
...@@ -235,4 +235,4 @@ public class LocalNotification extends CordovaPlugin { ...@@ -235,4 +235,4 @@ public class LocalNotification extends CordovaPlugin {
private static NotificationManager getNotificationManager () { private static NotificationManager getNotificationManager () {
return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
} }
} }
\ No newline at end of file
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