|
@@ -102,18 +102,21 @@
|
|
|
|
|
|
// Section : Privacy --------------------------------------------------------------
|
|
|
|
|
|
- section = [XLFormSectionDescriptor formSectionWithTitle:NSLocalizedString(@"_privacy_", nil)];
|
|
|
- [form addFormSection:section];
|
|
|
- section.footerTitle = NSLocalizedString(@"_privacy_footer_", nil);
|
|
|
+ if (!NCBrandOptions.sharedInstance.disable_crash_service) {
|
|
|
|
|
|
- row = [XLFormRowDescriptor formRowDescriptorWithTag:@"crashservice" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_crashservice_title_", nil)];
|
|
|
- row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.sharedInstance.backgroundView;
|
|
|
- [row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
- [row.cellConfig setObject:NCBrandColor.sharedInstance.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"crashservice"] width:50 height:50 color:NCBrandColor.sharedInstance.icon] forKey:@"imageView.image"];
|
|
|
- if ([CCUtility getDisableCrashservice]) row.value = @"1";
|
|
|
- else row.value = @"0";
|
|
|
- [section addFormRow:row];
|
|
|
+ section = [XLFormSectionDescriptor formSectionWithTitle:NSLocalizedString(@"_privacy_", nil)];
|
|
|
+ [form addFormSection:section];
|
|
|
+ section.footerTitle = NSLocalizedString(@"_privacy_footer_", nil);
|
|
|
+
|
|
|
+ row = [XLFormRowDescriptor formRowDescriptorWithTag:@"crashservice" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_crashservice_title_", nil)];
|
|
|
+ row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.sharedInstance.backgroundView;
|
|
|
+ [row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
+ [row.cellConfig setObject:NCBrandColor.sharedInstance.textView forKey:@"textLabel.textColor"];
|
|
|
+ [row.cellConfig setObject:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"crashservice"] width:50 height:50 color:NCBrandColor.sharedInstance.icon] forKey:@"imageView.image"];
|
|
|
+ if ([CCUtility getDisableCrashservice]) row.value = @"1";
|
|
|
+ else row.value = @"0";
|
|
|
+ [section addFormRow:row];
|
|
|
+ }
|
|
|
|
|
|
// Section CLEAR CACHE -------------------------------------------------
|
|
|
|