Skip to content
Snippets Groups Projects
Commit 12aa343d authored by Claudio Cambra's avatar Claudio Cambra Committed by Steve Lhomme
Browse files

macosx: Stop using magic numbers for audio library segments in VLCLibraryCollectionViewFlowLayout


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 1a8e6eb1
No related branches found
No related tags found
No related merge requests found
......@@ -204,14 +204,14 @@ static CVReturn detailViewAnimationCallback(CVDisplayLinkRef displayLink,
// Add detail view to the attributes set -- detail view about to be shown
switch(audioDataSource.segmentedControl.selectedSegment) {
case 0:
case 3:
case VLCAudioLibraryArtistsSegment:
case VLCAudioLibraryGenresSegment:
[layoutAttributesArray addObject:[self layoutAttributesForSupplementaryViewOfKind:VLCLibraryCollectionViewAudioGroupSupplementaryDetailViewKind atIndexPath:self.selectedIndexPath]];
break;
case 1:
case VLCAudioLibraryAlbumsSegment:
[layoutAttributesArray addObject:[self layoutAttributesForSupplementaryViewOfKind:VLCLibraryCollectionViewAlbumSupplementaryDetailViewKind atIndexPath:self.selectedIndexPath]];
break;
case 2:
case VLCAudioLibrarySongsSegment:
default:
[layoutAttributesArray addObject:[self layoutAttributesForSupplementaryViewOfKind:VLCLibraryCollectionViewMediaItemSupplementaryDetailViewKind atIndexPath:self.selectedIndexPath]];
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment