Commit 276a76bc authored by Carola Nitz's avatar Carola Nitz

VLCAlertViewController: make implicit self explicit

parent 7ded3c60
......@@ -234,12 +234,12 @@
/* selected item is a proper file, ask the user if s/he wants to download it */
NSArray<VLCAlertButton *> *buttonsAction = @[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CANCEL", nil)
action: ^(UIAlertAction* action){
_selectedFile = nil;
self->_selectedFile = nil;
}],
[[VLCAlertButton alloc] initWithTitle:NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
action:^(UIAlertAction* action){
[_boxController downloadFileToDocumentFolder:_selectedFile];
_selectedFile = nil;
[self->_boxController downloadFileToDocumentFolder:self->_selectedFile];
self->_selectedFile = nil;
}]];
[VLCAlertViewController alertViewManagerWithTitle:NSLocalizedString(@"DROPBOX_DOWNLOAD", nil)
errorMessage:[NSString stringWithFormat:NSLocalizedString(@"DROPBOX_DL_LONG", nil), _selectedFile.name, [[UIDevice currentDevice] model]]
......
......@@ -171,12 +171,12 @@
/* selected item is a proper file, ask the user if s/he wants to download it */
NSArray<VLCAlertButton *> *buttonsAction = @[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CANCEL", nil)
action: ^(UIAlertAction* action){
_selectedFile = nil;
self->_selectedFile = nil;
}],
[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
action: ^(UIAlertAction* action){
[_dropboxController downloadFileToDocumentFolder:_selectedFile];
_selectedFile = nil;
[self->_dropboxController downloadFileToDocumentFolder:self->_selectedFile];
self->_selectedFile = nil;
}]
];
[VLCAlertViewController alertViewManagerWithTitle:NSLocalizedString(@"DROPBOX_DOWNLOAD", nil)
......
......@@ -130,12 +130,12 @@
/* selected item is a proper file, ask the user if s/he wants to download it */
NSArray<VLCAlertButton *> *buttonsAction = @[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CANCEL", nil)
action: ^(UIAlertAction* action){
_selectedFile = nil;
self->_selectedFile = nil;
}],
[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
action: ^(UIAlertAction* action){
[_googleDriveController downloadFileToDocumentFolder:_selectedFile];
_selectedFile = nil;
[self->_googleDriveController downloadFileToDocumentFolder:self->_selectedFile];
self->_selectedFile = nil;
}]
];
[VLCAlertViewController alertViewManagerWithTitle:NSLocalizedString(@"DROPBOX_DOWNLOAD", nil)
......
......@@ -200,12 +200,12 @@
/* selected item is a proper file, ask the user if s/he wants to download it */
NSArray<VLCAlertButton *> *buttonsAction = @[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CANCEL", nil)
action: ^(UIAlertAction* action){
_selectedFile = nil;
self->_selectedFile = nil;
}],
[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
action: ^(UIAlertAction* action){
[_oneDriveController downloadObject:_selectedFile];
_selectedFile = nil;
[self->_oneDriveController downloadObject:self->_selectedFile];
self->_selectedFile = nil;
}]];
[VLCAlertViewController alertViewManagerWithTitle:NSLocalizedString(@"DROPBOX_DOWNLOAD", nil)
errorMessage:[NSString stringWithFormat:NSLocalizedString(@"DROPBOX_DL_LONG", nil), _selectedFile.name, [[UIDevice currentDevice] model]]
......@@ -217,7 +217,7 @@
viewController:self
buttonsAction:@[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_OK", nil)
action: ^(UIAlertAction* action){
_selectedFile = nil;
self->_selectedFile = nil;
}]]];
}
}
......
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