Commit d8d62068 by Sebastián Katzer

Fire event only if notification was found

parent 2ef15dd0
......@@ -250,7 +250,9 @@ public class LocalNotification extends CordovaPlugin {
Notification notification =
getNotificationMgr().cancel(id);
fireEvent("cancel", notification);
if (notification != null) {
fireEvent("cancel", notification);
}
}
}
......@@ -275,7 +277,9 @@ public class LocalNotification extends CordovaPlugin {
Notification notification =
getNotificationMgr().clear(id);
fireEvent("clear", notification);
if (notification != null) {
fireEvent("clear", notification);
}
}
}
......
......@@ -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