This commit is contained in:
Kyle Spearrin 2018-05-24 22:34:17 -04:00
parent f90c407fb6
commit 3315704c14
1 changed files with 10 additions and 12 deletions

View File

@ -116,11 +116,8 @@ 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?.InvalidateSession();
_nfcSession?.Dispose(); _nfcSession?.Dispose();
_nfcSession = null; _nfcSession = null;
@ -130,6 +127,7 @@ namespace Bit.iOS
_nfcSession.AlertMessage = AppResources.HoldYubikeyNearTop; _nfcSession.AlertMessage = AppResources.HoldYubikeyNearTop;
_nfcSession.BeginSession(); _nfcSession.BeginSession();
} }
}
}); });
UIApplication.SharedApplication.StatusBarHidden = false; UIApplication.SharedApplication.StatusBarHidden = false;