Fix an issue

This commit is contained in:
Thomas 2020-10-03 13:41:33 +02:00
parent 80c8e1a356
commit 30d344987c
1 changed files with 3 additions and 1 deletions

View File

@ -354,7 +354,9 @@ public class AllPlaylistsActivity extends AppCompatActivity {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
idChannel = channelId[position];
selectedChannel = myChannels.get(position - 1);
if( position > 0 ) {
selectedChannel = myChannels.get(position - 1);
}
}
@Override