mirror of
https://github.com/bitwarden/mobile
synced 2025-12-18 01:03:24 +00:00
cleanup
This commit is contained in:
@@ -116,19 +116,17 @@ namespace Bit.iOS
|
|||||||
MessagingCenter.Subscribe<Xamarin.Forms.Application, bool>(Xamarin.Forms.Application.Current,
|
MessagingCenter.Subscribe<Xamarin.Forms.Application, bool>(Xamarin.Forms.Application.Current,
|
||||||
"ListenYubiKeyOTP", (sender, listen) =>
|
"ListenYubiKeyOTP", (sender, listen) =>
|
||||||
{
|
{
|
||||||
if(!_deviceInfoService.NfcEnabled)
|
if(_deviceInfoService.NfcEnabled)
|
||||||
{
|
{
|
||||||
return;
|
_nfcSession?.InvalidateSession();
|
||||||
}
|
_nfcSession?.Dispose();
|
||||||
|
_nfcSession = null;
|
||||||
_nfcSession?.InvalidateSession();
|
if(listen)
|
||||||
_nfcSession?.Dispose();
|
{
|
||||||
_nfcSession = null;
|
_nfcSession = new NFCNdefReaderSession(_nfcDelegate, null, true);
|
||||||
if(listen)
|
_nfcSession.AlertMessage = AppResources.HoldYubikeyNearTop;
|
||||||
{
|
_nfcSession.BeginSession();
|
||||||
_nfcSession = new NFCNdefReaderSession(_nfcDelegate, null, true);
|
}
|
||||||
_nfcSession.AlertMessage = AppResources.HoldYubikeyNearTop;
|
|
||||||
_nfcSession.BeginSession();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user