Commit 91d56370 authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne

fix the first display of library with the search bar hidden on iPad

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 09a6de86
......@@ -228,6 +228,9 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
_searchBar.delegate = self;
_searchBar.hidden = YES;
if (!_usingTableViewToShowData)
_collectionView.contentInset = UIEdgeInsetsMake(-[VLCLibraryHeaderView headerHeight], 0, 0, 0);
UITapGestureRecognizer *tapTwiceGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapTwiceGestureAction:)];
[tapTwiceGesture setNumberOfTapsRequired:2];
[self.navigationController.navigationBar addGestureRecognizer:tapTwiceGesture];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment