mirror of
https://github.com/zoriya/Opus.git
synced 2025-12-06 06:26:15 +00:00
Solving a bug with the searchable list and one with the home fav.
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Opus.DataStructure
|
|||||||
private Func<T, bool> filter = x => true;
|
private Func<T, bool> filter = x => true;
|
||||||
|
|
||||||
public SearchableList() { }
|
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)
|
public void SetFilter(Func<T, bool> filter)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ namespace Opus.Fragments
|
|||||||
|
|
||||||
public void RefreshFavs()
|
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)
|
public void NotifyQueueInserted(int position)
|
||||||
|
|||||||
Reference in New Issue
Block a user