mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 00:03:22 +00:00
Fixed nav controller. Pass context from splash.
This commit is contained in:
@@ -44,6 +44,7 @@ namespace Bit.iOS.Extension
|
||||
{
|
||||
}
|
||||
|
||||
public NSExtensionContext Context { get; set; }
|
||||
public string ProviderType { get; set; }
|
||||
public Uri Url { get; set; }
|
||||
public string SiteTitle { get; set; }
|
||||
@@ -59,7 +60,7 @@ namespace Bit.iOS.Extension
|
||||
base.ViewDidLoad();
|
||||
View.BackgroundColor = UIColor.FromPatternImage(new UIImage("boxed-bg.png"));
|
||||
|
||||
foreach(var item in ExtensionContext.InputItems)
|
||||
foreach(var item in Context.InputItems)
|
||||
{
|
||||
var processed = false;
|
||||
foreach(var itemProvider in item.Attachments)
|
||||
@@ -83,6 +84,11 @@ namespace Bit.iOS.Extension
|
||||
}
|
||||
}
|
||||
|
||||
partial void CancelClicked (UIBarButtonItem sender)
|
||||
{
|
||||
Context.CompleteRequest(null, null);
|
||||
}
|
||||
|
||||
partial void DoneClicked(NSObject sender)
|
||||
{
|
||||
NSDictionary itemData = null;
|
||||
@@ -123,7 +129,7 @@ namespace Bit.iOS.Extension
|
||||
var resultsItem = new NSExtensionItem { Attachments = new NSItemProvider[] { resultsProvider } };
|
||||
var returningItems = new NSExtensionItem[] { resultsItem };
|
||||
|
||||
ExtensionContext.CompleteRequest(returningItems, null);
|
||||
Context.CompleteRequest(returningItems, null);
|
||||
}
|
||||
|
||||
private bool ProcessItemProvider(NSItemProvider itemProvider, string type, Action<NSDictionary> action)
|
||||
|
||||
Reference in New Issue
Block a user