Skip to content

Commit 3924b6e

Browse files
committed
Fix handling settings reporting as "slider"
1 parent e1d5da0 commit 3924b6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

XBMC Remote/SettingsValuesViewController.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ - (id)initWithFrame:(CGRect)frame withItem:(id)item {
9494
xbmcSetting = SettingTypeSlider;
9595
storeSliderValue = [self.detailItem[@"value"] intValue];
9696
}
97+
else if ([itemControls[@"type"] isEqualToString:@"slider"] && settingOptions == nil) {
98+
xbmcSetting = SettingTypeSlider;
99+
storeSliderValue = [self.detailItem[@"value"] intValue];
100+
if ([itemControls[@"format"] isEqualToString:@"percentage"]) {
101+
self.detailItem[@"maximum"] = @100;
102+
}
103+
}
97104
else if ([itemControls[@"type"] isEqualToString:@"edit"]) {
98105
xbmcSetting = SettingTypeInput;
99106
}

0 commit comments

Comments
 (0)