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

Fix crash when using Yubikey via usb on Android (#1246)

* Fix crash when using yubikey via usb on Android

* Fix crash when using usb keyboard on Android
This commit is contained in:
Thomas Rittson 2021-02-03 05:56:44 +10:00 committed by GitHub
parent 8d5614cd7b
commit 52ba9f2ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,9 @@ namespace Bit.Droid
Icon = "@mipmap/ic_launcher",
Theme = "@style/LaunchTheme",
MainLauncher = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation |
ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden |
ConfigChanges.Navigation)]
[Register("com.x8bit.bitwarden.MainActivity")]
public class MainActivity : Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{

View File

@ -102,6 +102,9 @@ namespace Bit.App.Pages
if (_vm.TotpMethod)
{
RequestFocus(_totpEntry);
} else if (_vm.YubikeyMethod)
{
RequestFocus(_yubikeyTokenEntry);
}
return Task.FromResult(0);
});