Bug report: Make rageshake use it

This commit is contained in:
manuroe
2017-04-27 12:30:04 +02:00
parent b75abb3859
commit 397d00dfbe
4 changed files with 58 additions and 138 deletions
@@ -61,6 +61,8 @@
{
[super viewDidLoad];
NSLog(@"%@", _screenshot);
_titleLabel.text = NSLocalizedStringFromTable(@"bug_report_title", @"Vector", nil);
_descriptionLabel.text = NSLocalizedStringFromTable(@"bug_report_description", @"Vector", nil);
_logsDescriptionLabel.text = NSLocalizedStringFromTable(@"bug_report_logs_description", @"Vector", nil);
@@ -81,9 +83,12 @@
self.sendLogs = YES;
self.sendScreenshot = YES;
// TODO: Screenshot is not yet supported by the bug report API
_sendScreenshotContainer.hidden = YES;
_sendScreenshotContainerHeightConstraint.constant = 0;
// Hide the screenshot button if there is no screenshot
// if (!_screenshot) // TODO: always hide it becayse screenshot is not yet supported by the bug report API
{
_sendScreenshotContainer.hidden = YES;
_sendScreenshotContainerHeightConstraint.constant = 0;
}
// Listen to sendLogs tap
UITapGestureRecognizer *sendLogsTapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onSendLogsTap:)];