Make notification insertion cleaner

This commit is contained in:
Roman Kapustin 2019-07-01 18:41:40 +03:00
parent 0c95dff3d6
commit 7bdf737956
1 changed files with 1 additions and 2 deletions

View File

@ -26,8 +26,7 @@ public class NotificationSection : AlwaysUpdateFillFlowContainer<Drawable>
public void Add(Notification notification, float position)
{
notifications.Add(notification);
notifications.SetLayoutPosition(notification, position);
notifications.Insert((int)position, notification);
}
public IEnumerable<Type> AcceptTypes;