Support nullable icon

This commit is contained in:
Alexander Lobas
2017-06-15 22:29:11 +03:00
parent 26fc02bcd0
commit 7edea1ebab
2 changed files with 2 additions and 3 deletions
@@ -74,7 +74,7 @@ public class Notification {
private WeakReference<Balloon> myBalloonRef;
private final long myTimestamp;
public Notification(@NotNull String groupDisplayId, @NotNull Icon icon, @NotNull NotificationType type) {
public Notification(@NotNull String groupDisplayId, @Nullable Icon icon, @NotNull NotificationType type) {
this(groupDisplayId, icon, null, null, null, type, null);
}
@@ -89,7 +89,7 @@ public class Notification {
* @param listener notification lifecycle listener
*/
public Notification(@NotNull String groupDisplayId,
@NotNull Icon icon,
@Nullable Icon icon,
@Nullable String title,
@Nullable String subtitle,
@Nullable String content,
@@ -138,7 +138,6 @@ public final class NotificationGroup {
@Nullable String content,
@NotNull NotificationType type,
@Nullable NotificationListener listener) {
LOG.assertTrue(myIcon != null);
return new Notification(myDisplayId, myIcon, title, subtitle, content, type, listener);
}