catch potential null reference exception
This commit is contained in:
@@ -1070,12 +1070,15 @@ namespace keepass2android
|
|||||||
|
|
||||||
public override void OnBackPressed()
|
public override void OnBackPressed()
|
||||||
{
|
{
|
||||||
if (_drawerLayout.IsDrawerOpen((int) GravityFlags.Start))
|
if (_drawerLayout != null)
|
||||||
{
|
{
|
||||||
_drawerLayout.CloseDrawer((int)GravityFlags.Start);
|
if (_drawerLayout.IsDrawerOpen((int) GravityFlags.Start))
|
||||||
return;
|
{
|
||||||
|
_drawerLayout.CloseDrawer((int) GravityFlags.Start);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
base.OnBackPressed();
|
base.OnBackPressed();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeOtpSecretSpinner()
|
private void InitializeOtpSecretSpinner()
|
||||||
|
|||||||
Reference in New Issue
Block a user