Skip to content

Commit

Permalink
Merge pull request #95 from connorcimowsky/master
Browse files Browse the repository at this point in the history
Fix touch handling when dismissing the email compose view
  • Loading branch information
kyleve authored Dec 18, 2020
2 parents 3212862 + 9c1bae5 commit 8274f4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Aardvark.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Aardvark'
s.version = '3.4.4'
s.version = '3.4.5'
s.license = 'Apache License, Version 2.0'
s.summary = 'Aardvark is a library that makes it dead simple to create actionable bug reports.'
s.homepage = 'https://github.com/square/Aardvark'
Expand Down
3 changes: 2 additions & 1 deletion Aardvark/ARKEmailBugReporter.m
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ - (void)_showEmailComposeWindow;
[self.mailComposeViewController beginAppearanceTransition:YES animated:YES];

self.emailComposeWindow.rootViewController = self.mailComposeViewController;
[self.emailComposeWindow addSubview:self.mailComposeViewController.view];
[self.emailComposeWindow makeKeyAndVisible];

[self.mailComposeViewController endAppearanceTransition];
Expand All @@ -489,6 +488,8 @@ - (void)_dismissEmailComposeWindow;

[self.mailComposeViewController.view removeFromSuperview];
self.emailComposeWindow.rootViewController = nil;
// Manually hide the window so that UIKit stops retaining it
self.emailComposeWindow.hidden = YES;
self.emailComposeWindow = nil;

[self.mailComposeViewController endAppearanceTransition];
Expand Down

0 comments on commit 8274f4e

Please sign in to comment.