1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-26 12:16:07 +01:00

stop blocking OnBackButtonPressed

This commit is contained in:
Kyle Spearrin 2019-06-05 09:12:29 -04:00
parent 4d54c8f1d1
commit 65f2ea1df2

View File

@ -84,24 +84,9 @@ namespace Bit.App.Pages
if(!_vm.YubikeyMethod)
{
_messagingService.Send("listenYubiKeyOTP", false);
}
_broadcasterService.Unsubscribe(nameof(TwoFactorPage));
}
}
protected override bool OnBackButtonPressed()
{
// ref: https://github.com/bitwarden/mobile/issues/350
if(_vm.YubikeyMethod)
{
if(Device.RuntimePlatform == Device.Android)
{
return true;
}
_messagingService.Send("listenYubiKeyOTP", false);
_broadcasterService.Unsubscribe(nameof(TwoFactorPage));
}
return base.OnBackButtonPressed();
}
private async void Continue_Clicked(object sender, EventArgs e)
{