1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-14 15:23:35 +00:00

check app options ios extension on nfc check (#933)

This commit is contained in:
Kyle Spearrin
2020-05-29 15:25:06 -04:00
committed by GitHub
parent 6da0f82ddd
commit fbf3d97d57
5 changed files with 12 additions and 8 deletions

View File

@@ -295,7 +295,11 @@ namespace Bit.iOS.Core.Services
public bool SupportsNfc()
{
return CoreNFC.NFCNdefReaderSession.ReadingAvailable;
if(Application.Current is App.App currentApp && !currentApp.Options.IosExtension)
{
return CoreNFC.NFCNdefReaderSession.ReadingAvailable;
}
return false;
}
public bool SupportsCamera()
@@ -350,7 +354,7 @@ namespace Bit.iOS.Core.Services
public Task<string> DisplayActionSheetAsync(string title, string cancel, string destruction,
params string[] buttons)
{
if (Application.Current is App.App app && app.Options != null && !app.Options.EmptyApp)
if (Application.Current is App.App app && app.Options != null && !app.Options.IosExtension)
{
return app.MainPage.DisplayActionSheet(title, cancel, destruction, buttons);
}