Browse Source

Edge case handling when a timezone is selected

v1.2.4
Abhishek Banthia 8 years ago
parent
commit
936d923fe2
  1. 15
      Clocker/Model/CLTimezoneDataOperations.m

15
Clocker/Model/CLTimezoneDataOperations.m

@ -73,9 +73,18 @@
if (shouldCityBeShown.boolValue == 0)
{
self.dataObject.customLabel.length > 0 ?
[menuTitle appendString:self.dataObject.customLabel] :
[menuTitle appendString:self.dataObject.formattedAddress];
if (self.dataObject.formattedAddress.length > 0) {
self.dataObject.customLabel.length > 0 ?
[menuTitle appendString:self.dataObject.customLabel] :
[menuTitle appendString:self.dataObject.formattedAddress];
}
else
{
self.dataObject.customLabel.length > 0 ?
[menuTitle appendString:self.dataObject.customLabel] :
[menuTitle appendString:self.dataObject.timezoneID];
}
}

Loading…
Cancel
Save