mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
stop blocking OnBackButtonPressed
This commit is contained in:
parent
4d54c8f1d1
commit
65f2ea1df2
1 changed files with 1 additions and 16 deletions
|
@ -84,23 +84,8 @@ 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();
|
||||
_broadcasterService.Unsubscribe(nameof(TwoFactorPage));
|
||||
}
|
||||
|
||||
private async void Continue_Clicked(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in a new issue