From 8bb90f7ace6b251201cba5a549a096a994a20f0b Mon Sep 17 00:00:00 2001 From: Anonymus Raccoon <32224410+AnonymusRaccoon@users.noreply.github.com> Date: Mon, 1 Jul 2019 19:47:59 +0200 Subject: [PATCH] Solving a bug with the searchable list and one with the home fav. --- Opus/Code/DataStructure/SearchableList.cs | 2 +- Opus/Code/UI/Fragments/Home.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Opus/Code/DataStructure/SearchableList.cs b/Opus/Code/DataStructure/SearchableList.cs index 9d99931..f606c6d 100644 --- a/Opus/Code/DataStructure/SearchableList.cs +++ b/Opus/Code/DataStructure/SearchableList.cs @@ -23,7 +23,7 @@ namespace Opus.DataStructure private Func filter = x => true; public SearchableList() { } - public SearchableList(IEnumerable collection) : base(collection) { AddRange(collection); } + public SearchableList(IEnumerable collection) : base(collection) { } public void SetFilter(Func filter) { diff --git a/Opus/Code/UI/Fragments/Home.cs b/Opus/Code/UI/Fragments/Home.cs index 1019b95..a52e411 100644 --- a/Opus/Code/UI/Fragments/Home.cs +++ b/Opus/Code/UI/Fragments/Home.cs @@ -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)