Преглед изворни кода

Merge pull request #169 from ginovva320/patch-1

Update to LocalNotification.cancel()
Sebastián Katzer пре 11 година
родитељ
комит
d29510ac42
1 измењених фајлова са 2 додато и 2 уклоњено
  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);
     }
-}
+}