Solving a bug with the searchable list and one with the home fav.

This commit is contained in:
Anonymus Raccoon
2019-07-01 19:47:59 +02:00
parent d121b28c75
commit 8bb90f7ace
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ namespace Opus.DataStructure
private Func<T, bool> filter = x => true;
public SearchableList() { }
public SearchableList(IEnumerable<T> collection) : base(collection) { AddRange(collection); }
public SearchableList(IEnumerable<T> collection) : base(collection) { }
public void SetFilter(Func<T, bool> filter)
{

View File

@@ -208,7 +208,7 @@ namespace Opus.Fragments
public void RefreshFavs()
{
adapterItems.Find(x => x.SectionTitle == GetString(Resource.String.favorite)).recycler.GetAdapter().NotifyDataSetChanged();
adapterItems.Find(x => x.SectionTitle == GetString(Resource.String.favorite))?.recycler.GetAdapter().NotifyDataSetChanged();
}
public void NotifyQueueInserted(int position)