From e90d3e785dc0bb81c32da1033bf7937b5fbb07c0 Mon Sep 17 00:00:00 2001 From: wutschel Date: Sun, 12 May 2024 11:23:12 +0200 Subject: [PATCH] fixup: properties & rename --- XBMC Remote/DetailViewController.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/XBMC Remote/DetailViewController.m b/XBMC Remote/DetailViewController.m index 945b94d51..dafe19c1b 100644 --- a/XBMC Remote/DetailViewController.m +++ b/XBMC Remote/DetailViewController.m @@ -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; } }