Commit beda9be6 authored by Soomin Lee's avatar Soomin Lee

VLCAlertViewController: Using classes minor cosmetic improvement

parent 3589682a
......@@ -234,11 +234,11 @@
/* 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)
style: UIAlertActionStyleCancel
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
self->_selectedFile = nil;
}],
[[VLCAlertButton alloc] initWithTitle:NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
action:^(UIAlertAction* action){
action:^(UIAlertAction *action) {
[self->_boxController downloadFileToDocumentFolder:self->_selectedFile];
self->_selectedFile = nil;
}]];
......
......@@ -39,7 +39,7 @@
style: UIAlertActionStyleCancel
action:nil],
[[VLCAlertButton alloc] initWithTitle:NSLocalizedString(@"BUG_REPORT_BUTTON", nil)
action: ^(UIAlertAction* action) {
action: ^(UIAlertAction *action) {
NSURL *url = [NSURL URLWithString:@"https://trac.videolan.org/vlc/newticket"];
[[UIApplication sharedApplication] openURL:url];
}]
......
......@@ -167,11 +167,11 @@
/* 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)
style: UIAlertActionStyleCancel
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
self->_selectedFile = nil;
}],
[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
[self->_dropboxController downloadFileToDocumentFolder:self->_selectedFile];
self->_selectedFile = nil;
}]
......
......@@ -130,11 +130,11 @@
/* 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)
style: UIAlertActionStyleCancel
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
self->_selectedFile = nil;
}],
[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
[self->_googleDriveController downloadFileToDocumentFolder:self->_selectedFile];
self->_selectedFile = nil;
}]
......
......@@ -200,11 +200,11 @@
/* 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)
style: UIAlertActionStyleCancel
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
self->_selectedFile = nil;
}],
[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
[self->_oneDriveController downloadObject:self->_selectedFile];
self->_selectedFile = nil;
}]];
......@@ -218,7 +218,7 @@
viewController:self
buttonsAction:@[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_OK", nil)
style: UIAlertActionStyleDefault
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
self->_selectedFile = nil;
}]]];
}
......
......@@ -1192,7 +1192,7 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
style: UIAlertActionStyleCancel
action: nil],
[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CONTINUE", nil)
action: ^(UIAlertAction* action){
action: ^(UIAlertAction *action) {
[self setPlaybackPosition:lastPosition];
}]
];
......
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