fix: corrected folder navigation, now displaying correct subfolders

This commit is contained in:
antonio 2023-08-31 16:20:05 +02:00
parent 1a75369591
commit 2a74f51f8d
3 changed files with 6 additions and 4 deletions

View file

@ -60,7 +60,7 @@ public class MusicIndexAdapter extends RecyclerView.Adapter<MusicIndexAdapter.Vi
@Override
public String getTextToShowInBubble(int pos) {
return Character.toString(Objects.requireNonNull(artists.get(pos).getName().toUpperCase()).charAt(0));
return artists != null && !artists.isEmpty() ? Character.toString(Objects.requireNonNull(artists.get(pos).getName().toUpperCase()).charAt(0)) : null;
}
public class ViewHolder extends RecyclerView.ViewHolder {