mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
fix for stuck extension sheets when dismissed by swipe (#1117)
* fix for stuck extension sheets when dismissed by swipe * simplify dismiss action assignments
This commit is contained in:
@@ -14,7 +14,9 @@ namespace Bit.iOS.Autofill
|
||||
{
|
||||
public LoginSearchViewController(IntPtr handle)
|
||||
: base(handle)
|
||||
{ }
|
||||
{
|
||||
DismissModalAction = Cancel;
|
||||
}
|
||||
|
||||
public Context Context { get; set; }
|
||||
public CredentialProviderViewController CPViewController { get; set; }
|
||||
@@ -46,6 +48,11 @@ namespace Bit.iOS.Autofill
|
||||
}
|
||||
|
||||
partial void CancelBarButton_Activated(UIBarButtonItem sender)
|
||||
{
|
||||
Cancel();
|
||||
}
|
||||
|
||||
private void Cancel()
|
||||
{
|
||||
if (FromList)
|
||||
{
|
||||
@@ -70,6 +77,8 @@ namespace Bit.iOS.Autofill
|
||||
{
|
||||
addLoginController.Context = Context;
|
||||
addLoginController.LoginSearchController = this;
|
||||
segue.DestinationViewController.PresentationController.Delegate =
|
||||
new CustomPresentationControllerDelegate(addLoginController.DismissModalAction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user