Skip to content

Commit

Permalink
fixup: properties & rename
Browse files Browse the repository at this point in the history
  • Loading branch information
wutschel committed May 18, 2024
1 parent 8337af1 commit e90d3e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions XBMC Remote/DetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -5910,12 +5910,13 @@ - (void)initIpadCornerInfo {
// Add a reserved fixed space which is used for iPad corner info
for (UILabel *view in buttonsView.subviews) {
if ([view isKindOfClass:[UIToolbar class]]) {
UIToolbar *bar = (UIToolbar*)view;
NSMutableArray *items = [NSMutableArray arrayWithArray:bar.items];
UIToolbar *toolbar = (UIToolbar*)view;
NSMutableArray *items = [NSMutableArray arrayWithArray:toolbar.items];
UIBarButtonItem *fixedSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
fixedSpace.width = FIXED_SPACE_WIDTH;
[items addObject:fixedSpace];
[bar setItems:items animated:NO];
toolbar.items = items;
break;
}
}

Expand Down

0 comments on commit e90d3e7

Please sign in to comment.