mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 13:23:39 +00:00
stop blocking OnBackButtonPressed
This commit is contained in:
@@ -84,24 +84,9 @@ namespace Bit.App.Pages
|
|||||||
if(!_vm.YubikeyMethod)
|
if(!_vm.YubikeyMethod)
|
||||||
{
|
{
|
||||||
_messagingService.Send("listenYubiKeyOTP", false);
|
_messagingService.Send("listenYubiKeyOTP", false);
|
||||||
|
}
|
||||||
_broadcasterService.Unsubscribe(nameof(TwoFactorPage));
|
_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)
|
private async void Continue_Clicked(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user