Skip to content

Commit

Permalink
Bug report: Fix a crash when rotating + debackgrounding the app (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed Jun 29, 2017
1 parent e939c92 commit 1bf88ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Riot/ViewController/BugReportViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ -(void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];

[self dismissKeyboard];

if (screenShotFile)
{
[[NSFileManager defaultManager] removeItemAtURL:screenShotFile error:nil];
Expand Down Expand Up @@ -161,6 +163,12 @@ - (void)setSendScreenshot:(BOOL)sendScreenshot
}

#pragma mark - MXKViewController
- (void)dismissKeyboard
{
// Hide the keyboard
[_bugReportDescriptionTextView resignFirstResponder];
}

- (void)onKeyboardShowAnimationComplete
{
self.keyboardView = _bugReportDescriptionTextView.inputAccessoryView.superview;
Expand Down

0 comments on commit 1bf88ca

Please sign in to comment.