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 fb8202bd40
commit 52fc3bbb14
@@ -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;