Browse Source

Rigorous Check.

v1.4.1
Abhishek Banthia 8 years ago
parent
commit
51dd56aab5
  1. 5
      Clocker/CLParentPanelController.m

5
Clocker/CLParentPanelController.m

@ -66,9 +66,14 @@ NSString *const CLYesWithExclamation = @"Yes!";
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context
{
if ([keyPath isEqualToString:CLDisplayFutureSliderKey]) {
if ([change[@"new"] isKindOfClass:[NSNumber class]])
{
self.futureSlider.hidden = [change[@"new"] isEqualToNumber:@(1)] ? YES : NO;
[Answers logCustomEventWithName:@"Is Future Slider Displayed" customAttributes:@{@"Display Value" : self.futureSlider.isHidden ? @"NO" : @"YES"}];
}
}
else if([keyPath isEqualToString:CLUserFontSizePreference])
{
NSNumber *userFontSize = [[NSUserDefaults standardUserDefaults] objectForKey:CLUserFontSizePreference];

Loading…
Cancel
Save