| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 RootController *rootController = (RootController *)viewController; | 221 RootController *rootController = (RootController *)viewController; |
| 222 if (![rootController.viewControllers.firstObject isKindOfClass:[HomeControll
er class]]) { | 222 if (![rootController.viewControllers.firstObject isKindOfClass:[HomeControll
er class]]) { |
| 223 return; | 223 return; |
| 224 } | 224 } |
| 225 } | 225 } |
| 226 | 226 |
| 227 while (viewController.presentedViewController) { | 227 while (viewController.presentedViewController) { |
| 228 viewController = viewController.presentedViewController; | 228 viewController = viewController.presentedViewController; |
| 229 } | 229 } |
| 230 | 230 |
| 231 NSString *title = NSLocalizedString(@"Filter list update failed", "Title of f
ilter update fialure dialog"); | 231 NSString *title = NSLocalizedString(@"Filter list update failed", "Title of f
ilter update failure dialog"); |
| 232 NSString *message = NSLocalizedString(@"Failed to update filter lists, please
try again later.", @"Message of filter update fialure dialog"); | 232 NSString *message = NSLocalizedString(@"Failed to update filter lists. Please
try again later.", @"Message of filter update failure dialog"); |
| 233 | 233 |
| 234 UIAlertController *alertController = [UIAlertController alertControllerWithTit
le:title message:message preferredStyle:UIAlertControllerStyleAlert]; | 234 UIAlertController *alertController = [UIAlertController alertControllerWithTit
le:title message:message preferredStyle:UIAlertControllerStyleAlert]; |
| 235 [alertController addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertA
ctionStyleDefault handler:nil]]; | 235 [alertController addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertA
ctionStyleDefault handler:nil]]; |
| 236 alertController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; | 236 alertController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; |
| 237 [viewController presentViewController:alertController animated:YES completion:
nil]; | 237 [viewController presentViewController:alertController animated:YES completion:
nil]; |
| 238 | 238 |
| 239 self.needsDisplayErrorDialog = NO; | 239 self.needsDisplayErrorDialog = NO; |
| 240 } | 240 } |
| 241 | 241 |
| 242 #pragma mark - NSURLSessionDownloadDelegate | 242 #pragma mark - NSURLSessionDownloadDelegate |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 if ([error code] == NSFileWriteFileExistsError) { | 317 if ([error code] == NSFileWriteFileExistsError) { |
| 318 return YES; | 318 return YES; |
| 319 } else { | 319 } else { |
| 320 return NO; | 320 return NO; |
| 321 } | 321 } |
| 322 } | 322 } |
| 323 | 323 |
| 324 #pragma mark - Private | 324 #pragma mark - Private |
| 325 | 325 |
| 326 @end | 326 @end |
| OLD | NEW |