Commit c146c1e7 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Cosmetics

parent f620c555
......@@ -19,8 +19,8 @@ Interface:
more precisely (iPad only)
* Previously removed episodes and tracks no longer show up in the respective
group listings (#9705)
* Improved privacy by requesting the passcode 2 minutes after leaving the app
and by obfuscating playback metadata if passcode lock is enabled
* Improved privacy by requesting the passcode immediately after leaving the
app and by obfuscating playback metadata if passcode lock is enabled
Cloud interaction:
* Added support for downloads from Google Drive (#8690)
......
......@@ -137,9 +137,8 @@
NSDataDetector *detector = [NSDataDetector dataDetectorWithTypes:(NSTextCheckingTypes)NSTextCheckingTypeLink error:nil];
NSUInteger parsedStringLength = [parsedString length];
NSUInteger numberOfUrlMatches = [detector numberOfMatchesInString:parsedString options:0 range:NSMakeRange(0, parsedStringLength)];
if (numberOfUrlMatches == 0) {
if (numberOfUrlMatches == 0)
parsedString = [@"http://" stringByAppendingString:parsedString];
}
NSURL *targetUrl = [NSURL URLWithString:parsedString];
return targetUrl;
......@@ -175,18 +174,16 @@
- (VLCDropboxTableViewController *)dropboxTableViewController
{
if (_dropboxTableViewController == nil) {
if (_dropboxTableViewController == nil)
_dropboxTableViewController = [[VLCDropboxTableViewController alloc] initWithNibName:nil bundle:nil];
}
return _dropboxTableViewController;
}
- (VLCGoogleDriveTableViewController *)googleDriveTableViewController
{
if (_googleDriveTableViewController == nil) {
if (_googleDriveTableViewController == nil)
_googleDriveTableViewController = [[VLCGoogleDriveTableViewController alloc] initWithNibName:nil bundle:nil];
}
return _googleDriveTableViewController;
}
......@@ -194,9 +191,8 @@
- (VLCDownloadViewController *)downloadViewController
{
if (_downloadViewController == nil) {
if (_downloadViewController == nil)
_downloadViewController = [[VLCDownloadViewController alloc] init];
}
return _downloadViewController;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment