Commit d8d62068 by Sebastián Katzer

Fire event only if notification was found

parent 2ef15dd0
......@@ -250,9 +250,11 @@ public class LocalNotification extends CordovaPlugin {
Notification notification =
getNotificationMgr().cancel(id);
if (notification != null) {
fireEvent("cancel", notification);
}
}
}
/**
* Cancel all scheduled notifications.
......@@ -275,9 +277,11 @@ public class LocalNotification extends CordovaPlugin {
Notification notification =
getNotificationMgr().clear(id);
if (notification != null) {
fireEvent("clear", notification);
}
}
}
/**
* Clear all triggered notifications without canceling them.
......
......@@ -121,8 +121,6 @@ class AssetUtil {
return Uri.EMPTY;
}
/**
* URI for a 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