mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
cleanup
This commit is contained in:
parent
f90c407fb6
commit
3315704c14
1 changed files with 10 additions and 12 deletions
|
@ -116,19 +116,17 @@ namespace Bit.iOS
|
|||
MessagingCenter.Subscribe<Xamarin.Forms.Application, bool>(Xamarin.Forms.Application.Current,
|
||||
"ListenYubiKeyOTP", (sender, listen) =>
|
||||
{
|
||||
if(!_deviceInfoService.NfcEnabled)
|
||||
if(_deviceInfoService.NfcEnabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_nfcSession?.InvalidateSession();
|
||||
_nfcSession?.Dispose();
|
||||
_nfcSession = null;
|
||||
if(listen)
|
||||
{
|
||||
_nfcSession = new NFCNdefReaderSession(_nfcDelegate, null, true);
|
||||
_nfcSession.AlertMessage = AppResources.HoldYubikeyNearTop;
|
||||
_nfcSession.BeginSession();
|
||||
_nfcSession?.InvalidateSession();
|
||||
_nfcSession?.Dispose();
|
||||
_nfcSession = null;
|
||||
if(listen)
|
||||
{
|
||||
_nfcSession = new NFCNdefReaderSession(_nfcDelegate, null, true);
|
||||
_nfcSession.AlertMessage = AppResources.HoldYubikeyNearTop;
|
||||
_nfcSession.BeginSession();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue