mirror of
https://github.com/bitwarden/mobile
synced 2025-12-22 19:23:58 +00:00
read yubikey and log in
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Android.App;
|
||||
using Android.Nfc;
|
||||
using Android.OS;
|
||||
using Bit.App.Abstractions;
|
||||
|
||||
@@ -42,14 +41,6 @@ namespace Bit.Android.Services
|
||||
return 1f;
|
||||
}
|
||||
}
|
||||
public bool NfcEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
var manager = (NfcManager)Application.Context.GetSystemService("nfc");
|
||||
var adapter = manager.DefaultAdapter;
|
||||
return adapter != null && adapter.IsEnabled;
|
||||
}
|
||||
}
|
||||
public bool NfcEnabled => Utilities.NfcEnabled();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user