vanilla-music / vanilla

Vanilla Music Player for Android
GNU General Public License v3.0
1.19k stars 296 forks source link

Fix genre tab expansion when tracks tab is no present #1072

Closed netsuso closed 3 years ago

netsuso commented 3 years ago

When the tracks tab is available, the genre tab is correctly expanded following the expected sequence (genre -> artist -> album -> track). But if the tracks tab is disabled, then the genre is not expanded even if artist and/or album tabs are enabled. Instead, it adds all tracks for that genre to the playlist.

This is because the expansion for genre is currently based on detecting only the tracks tab, ignoring the presence of the artists and/or albums tabs. This PR adds these conditions so the genre is correctly expanded in this case.