From aaee0212f03d8b6f96101aeaf2987beeb3facd6d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 12 Mar 2018 15:42:53 -0400 Subject: [PATCH] ios fixes --- src/iOS.Core/Services/NoopDeviceActionService.cs | 2 +- src/iOS/Services/DeviceActionService.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/iOS.Core/Services/NoopDeviceActionService.cs b/src/iOS.Core/Services/NoopDeviceActionService.cs index c9c97349f..956e99a0c 100644 --- a/src/iOS.Core/Services/NoopDeviceActionService.cs +++ b/src/iOS.Core/Services/NoopDeviceActionService.cs @@ -45,7 +45,7 @@ namespace Bit.iOS.Core.Services public Task DisplayPromptAync(string title = null, string description = null, string text = null) { - // do nothing + return Task.FromResult(null); } public void HideLoading() diff --git a/src/iOS/Services/DeviceActionService.cs b/src/iOS/Services/DeviceActionService.cs index 6e506a58d..22ce2ff34 100644 --- a/src/iOS/Services/DeviceActionService.cs +++ b/src/iOS/Services/DeviceActionService.cs @@ -341,6 +341,8 @@ namespace Bit.iOS.Services input = x; input.Text = text ?? string.Empty; }); + var vc = GetPresentedViewController(); + vc?.PresentViewController(alert, true, null); return result.Task; }