Commit 99d8187f authored by Jr Prévost's avatar Jr Prévost Committed by Felix Paul Kühne
Browse files

Shake iDevice to create bug report close #7788


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 1c48e16a
......@@ -206,6 +206,30 @@
}
}
#pragma mark - shake to support
- (BOOL)canBecomeFirstResponder {
return YES;
}
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (motion == UIEventSubtypeMotionShake) {
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:NSLocalizedString(@"BUG_REPORT_TITLE", @"")
message:NSLocalizedString(@"BUG_REPORT_MESSAGE", @"") delegate:self
cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", @"")
otherButtonTitles:NSLocalizedString(@"BUG_REPORT_BUTTON", @""), nil];;
[alert show];
}
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 1) {
NSURL *url = [NSURL URLWithString:@"https://trac.videolan.org/vlc/newticket"];
[[UIApplication sharedApplication] openURL:url];
}
}
- (void)_dismissModalViewController
{
[self dismissModalViewControllerAnimated:YES];
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
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