Skip to content

Commit e257816

Browse files
committed
Workaround to make value visible in Kodi settings sliders
Different Kodi versions use different format strings. For now ignore the format string to make the value visible again.
1 parent 81fc536 commit e257816

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

XBMC Remote/SettingsValuesViewController.m

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ - (NSString*)getActionButtonTitle {
232232
subTitle = [NSString stringWithFormat:@": %@", settingOptions[longPressRow.row][@"label"]];
233233
break;
234234
case cSlider:
235-
if (itemControls[@"formatlabel"] != nil) {
236-
stringFormat = [NSString stringWithFormat:@": %@", itemControls[@"formatlabel"]];
237-
}
238235
subTitle = [NSString stringWithFormat:stringFormat, (int)storeSliderValue];
239236
break;
240237
case cUnsupported:
@@ -526,9 +523,6 @@ - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSI
526523
slider.minimumValue = [self.detailItem[@"minimum"] intValue];
527524
slider.maximumValue = [self.detailItem[@"maximum"] intValue];
528525
slider.value = [self.detailItem[@"value"] intValue];
529-
if (itemControls[@"formatlabel"] != nil) {
530-
stringFormat = [NSString stringWithFormat:@"%@", itemControls[@"formatlabel"]];
531-
}
532526
sliderLabel.text = [NSString stringWithFormat:stringFormat, [self.detailItem[@"value"] intValue]];
533527
break;
534528

@@ -789,9 +783,6 @@ - (void)sliderAction:(id)sender {
789783
if ([[[slider superview] viewWithTag:102] isKindOfClass:[UILabel class]]) {
790784
UILabel *sliderLabel = (UILabel*)[[slider superview] viewWithTag:102];
791785
NSString *stringFormat = @"%i";
792-
if (itemControls[@"formatlabel"] != nil) {
793-
stringFormat = [NSString stringWithFormat:@"%@", itemControls[@"formatlabel"]];
794-
}
795786
sliderLabel.text = [NSString stringWithFormat:stringFormat, (int)storeSliderValue];
796787
}
797788
}

0 commit comments

Comments
 (0)