Bläddra i källkod

Merge pull request #169 from ginovva320/patch-1

Update to LocalNotification.cancel()
Sebastián Katzer 11 år sedan
förälder
incheckning
d29510ac42
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/android/LocalNotification.java

+ 2 - 2
src/android/LocalNotification.java

@@ -186,7 +186,7 @@ public class LocalNotification extends CordovaPlugin {
         Intent intent = new Intent(context, Receiver.class)
             .setAction("" + notificationId);
 
-        PendingIntent pi       = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
+        PendingIntent pi       = PendingIntent.getBroadcast(context, 0, intent, 0);
         AlarmManager am        = getAlarmManager();
         NotificationManager nc = getNotificationManager();
 
@@ -354,4 +354,4 @@ public class LocalNotification extends CordovaPlugin {
     protected static NotificationManager getNotificationManager () {
         return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
     }
-}
+}