Skip to content

Commit

Permalink
fixup: renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
wutschel committed May 10, 2024
1 parent 56793a1 commit c53d9c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions XBMC Remote/DetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ - (void)initCollectionView {
}];
[collectionView setShowsPullToRefresh:enableDiskCache];
collectionView.alwaysBounceVertical = YES;
[collectionView addSubview:[self createTableHeaderViewWithDark:YES]];
[collectionView addSubview:[self createFakeSearchbarInDark:YES]];
[self.view insertSubview:collectionView belowSubview:buttonsView];
}
}
Expand Down Expand Up @@ -2181,7 +2181,7 @@ - (void)setSearchBar:(UISearchBar*)searchBar toDark:(BOOL)isDark {
}
}

- (UISearchBar*)createTableHeaderViewWithDark:(BOOL)isDark {
- (UISearchBar*)createFakeSearchbarInDark:(BOOL)isDark {
// Create non-used search controller. This is added as tableHeaderView and lets iOS gracefully handle insets
UISearchController *searchCtrl = [[UISearchController alloc] initWithSearchResultsController:nil];
searchCtrl.searchBar.showsCancelButton = YES;
Expand Down Expand Up @@ -5683,7 +5683,7 @@ - (void)viewDidLoad {
self.navigationController.view.backgroundColor = UIColor.blackColor;
self.definesPresentationContext = NO;
iOSYDelta = self.searchController.searchBar.frame.size.height;
dataList.tableHeaderView = [self createTableHeaderViewWithDark:NO];
dataList.tableHeaderView = [self createFakeSearchbarInDark:NO];

if (@available(iOS 15.0, *)) {
dataList.sectionHeaderTopPadding = 0;
Expand Down

0 comments on commit c53d9c8

Please sign in to comment.