Skip to content

Commit

Permalink
Show in DetailVC
Browse files Browse the repository at this point in the history
  • Loading branch information
wutschel committed Nov 17, 2024
1 parent 75bc800 commit 4aa9664
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions XBMC Remote/DetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,17 @@ - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSI
runtimeyear.hidden = YES;
title.frame = CGRectMake(title.frame.origin.x, (int)(cellHeight / 2 - title.frame.size.height / 2), title.frame.size.width, title.frame.size.height);
}
else if ([item[@"family"] isEqualToString:@"profile"]) {
if ([item[@"label"] isEqualToString:AppDelegate.instance.currentProfile]) {
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
else {
cell.accessoryType = UITableViewCellAccessoryNone;
}
genre.hidden = YES;
runtimeyear.hidden = YES;
title.frame = CGRectMake(title.frame.origin.x, (int)(cellHeight / 2 - title.frame.size.height / 2), title.frame.size.width, title.frame.size.height);
}
else if ([item[@"family"] isEqualToString:@"channelid"]) {
runtimeyear.hidden = YES;
rating.hidden = YES;
Expand Down Expand Up @@ -4872,6 +4883,13 @@ - (void)retrieveData:(NSString*)methodToCall parameters:(NSDictionary*)parameter
}
}

// Profiles functions not supported with older Kodi versions
if ([methodToCall containsString:@"Profiles."] && ![VersionCheck hasProfilesSupport]) {
[Utilities showMessage:LOCALIZED_STR(@"Cannot do that") color:[Utilities getSystemRed:0.95]];
[self animateNoResultsFound];
return;
}

[Utilities alphaView:noFoundView AnimDuration:0.2 Alpha:0.0];
// NSLog(@"START");
elapsedTime = 0;
Expand Down

0 comments on commit 4aa9664

Please sign in to comment.