refactor: added search2 method as per Subsonic API specifications

This commit is contained in:
antonio 2023-07-12 09:52:57 +02:00
parent ba1295440b
commit 259c8b3599
3 changed files with 31 additions and 4 deletions

View file

@ -215,7 +215,7 @@ public class SearchFragment extends Fragment implements ClickCallback {
}
private void performSearch(String query) {
searchViewModel.search(query).observe(getViewLifecycleOwner(), result -> {
searchViewModel.search3(query).observe(getViewLifecycleOwner(), result -> {
if (bind != null) {
if (result.getArtists() != null) {
bind.searchArtistSector.setVisibility(!result.getArtists().isEmpty() ? View.VISIBLE : View.GONE);