mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-22 11:35:21 +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:
parent
8d5614cd7b
commit
52ba9f2ba7
@ -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
|
||||
{
|
||||
|
@ -102,6 +102,9 @@ namespace Bit.App.Pages
|
||||
if (_vm.TotpMethod)
|
||||
{
|
||||
RequestFocus(_totpEntry);
|
||||
} else if (_vm.YubikeyMethod)
|
||||
{
|
||||
RequestFocus(_yubikeyTokenEntry);
|
||||
}
|
||||
return Task.FromResult(0);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user