Commit 968fa06a authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use expression lambda

parent 4820ff8e
......@@ -476,9 +476,7 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
} else if (np.has("cancel")) {
final String dismissedId = np.getString("cancel");
currentNotifications.remove(dismissedId);
NotificationReceiver.RunCommand(context, service -> {
cancelNotificationCompat(service, dismissedId);
});
NotificationReceiver.RunCommand(context, service -> cancelNotificationCompat(service, dismissedId));
} else if (np.has("requestReplyId") && np.has("message")) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT_WATCH) {
......
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