Sebastián Katzer преди 12 години
родител
ревизия
d275c40cb8
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/android/LocalNotification.java

+ 3 - 3
src/android/LocalNotification.java

@@ -210,8 +210,8 @@ public class LocalNotification extends CordovaPlugin {
      * Set the application context if not already set.
      */
     public static void setContext (Context context) {
-        if (this.context == null) {
-            this.context = context;
+        if (LocalNotification.context == null) {
+            LocalNotification.context = context;
         }
     }
 
@@ -235,4 +235,4 @@ public class LocalNotification extends CordovaPlugin {
     private static NotificationManager getNotificationManager () {
         return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
     }
-}
+}