Skip to content

Commit

Permalink
Remove unused parameter from playerOpen
Browse files Browse the repository at this point in the history
Only either indexPath or the ActivityIndicator is needed.
  • Loading branch information
wutschel committed Jan 11, 2025
1 parent eb66e56 commit 6667bc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions XBMC Remote/DetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -4261,10 +4261,10 @@ - (void)addToPlaylist:(NSDictionary*)playlistParams indicator:(UIActivityIndicat

- (void)playerOpen:(NSDictionary*)params index:(NSIndexPath*)indexPath {
UIActivityIndicatorView *cellActivityIndicator = [self getCellActivityIndicator:indexPath];
[self playerOpen:params index:indexPath indicator:cellActivityIndicator];
[self playerOpen:params indicator:cellActivityIndicator];
}

- (void)playerOpen:(NSDictionary*)params index:(NSIndexPath*)indexPath indicator:(UIActivityIndicatorView*)cellActivityIndicator {
- (void)playerOpen:(NSDictionary*)params indicator:(UIActivityIndicatorView*)cellActivityIndicator {
[cellActivityIndicator startAnimating];
[[Utilities getJsonRPC] callMethod:@"Player.Open" withParameters:params onCompletion:^(NSString *methodName, NSInteger callId, id methodResult, DSJSONRPCError *methodError, NSError *error) {
[cellActivityIndicator stopAnimating];
Expand Down Expand Up @@ -4318,11 +4318,11 @@ - (void)startPlayback:(NSDictionary*)item indexPath:(NSIndexPath*)indexPath usin
callMethod:@"Player.SetPartymode"
withParameters:@{@"playerid": @(0), @"partymode": @NO}
onCompletion:^(NSString *methodName, NSInteger callId, id methodResult, DSJSONRPCError *methodError, NSError *internalError) {
[self playerOpen:playbackParams index:indexPath indicator:cellActivityIndicator];
[self playerOpen:playbackParams indicator:cellActivityIndicator];
}];
}
else {
[self playerOpen:playbackParams index:indexPath indicator:cellActivityIndicator];
[self playerOpen:playbackParams indicator:cellActivityIndicator];
}
}

Expand Down Expand Up @@ -4359,7 +4359,7 @@ - (void)startSlideshow:(NSDictionary*)item indexPath:(NSIndexPath*)indexPath {
}
};
}
[self playerOpen:playbackParams index:nil indicator:cellActivityIndicator];
[self playerOpen:playbackParams indicator:cellActivityIndicator];
}

- (id)buildPlaylistItems:(NSDictionary*)item key:(id)key {
Expand Down

0 comments on commit 6667bc9

Please sign in to comment.