Bug report: Fix a crash when rotating + debackgrounding the app (#1362)

This commit is contained in:
manuroe
2017-06-29 17:23:57 +02:00
parent c6b5edeb04
commit da4bf111c6
@@ -127,6 +127,8 @@
{
[super viewWillDisappear:animated];
[self dismissKeyboard];
if (screenShotFile)
{
[[NSFileManager defaultManager] removeItemAtURL:screenShotFile error:nil];
@@ -161,6 +163,12 @@
}
#pragma mark - MXKViewController
- (void)dismissKeyboard
{
// Hide the keyboard
[_bugReportDescriptionTextView resignFirstResponder];
}
- (void)onKeyboardShowAnimationComplete
{
self.keyboardView = _bugReportDescriptionTextView.inputAccessoryView.superview;