mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
various android crash fixes
This commit is contained in:
parent
dd334858ff
commit
5d646a6112
3 changed files with 8 additions and 7 deletions
|
@ -302,9 +302,9 @@ namespace Bit.Android.Services
|
|||
|
||||
public void DismissKeyboard()
|
||||
{
|
||||
var activity = (MainActivity)CurrentContext;
|
||||
try
|
||||
{
|
||||
var activity = (MainActivity)CurrentContext;
|
||||
var imm = (InputMethodManager)activity.GetSystemService(Context.InputMethodService);
|
||||
imm.HideSoftInputFromWindow(activity.CurrentFocus.WindowToken, 0);
|
||||
}
|
||||
|
|
|
@ -87,13 +87,14 @@ namespace Bit.App.Pages
|
|||
Content = stackLayout;
|
||||
}
|
||||
|
||||
protected override void OnAppearing()
|
||||
protected override async void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
|
||||
if(_checkFingerprintImmediately)
|
||||
{
|
||||
var task = CheckFingerprintAsync();
|
||||
await Task.Delay(Device.RuntimePlatform == Device.Android ? 500 : 200);
|
||||
await CheckFingerprintAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -93,9 +93,9 @@ namespace Bit.App.Pages
|
|||
Content = scrollView;
|
||||
}
|
||||
|
||||
private void Entry_Completed(object sender, EventArgs e)
|
||||
private async void Entry_Completed(object sender, EventArgs e)
|
||||
{
|
||||
var task = CheckPasswordAsync();
|
||||
await CheckPasswordAsync();
|
||||
}
|
||||
|
||||
protected override void OnAppearing()
|
||||
|
|
Loading…
Reference in a new issue