Browse Source

Rigorous Check.

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

9
Clocker/CLParentPanelController.m

@ -66,8 +66,13 @@ NSString *const CLYesWithExclamation = @"Yes!";
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context
{
if ([keyPath isEqualToString:CLDisplayFutureSliderKey]) {
self.futureSlider.hidden = [change[@"new"] isEqualToNumber:@(1)] ? YES : NO;
[Answers logCustomEventWithName:@"Is Future Slider Displayed" customAttributes:@{@"Display Value" : self.futureSlider.isHidden ? @"NO" : @"YES"}];
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])
{

Loading…
Cancel
Save