fix potential crashes in AutoFill service
This commit is contained in:
@@ -81,19 +81,10 @@ namespace keepass2android
|
||||
return;
|
||||
}
|
||||
|
||||
AutofillFieldMetadataCollection autofillFields = parser.AutofillFields;
|
||||
|
||||
|
||||
var autofillIds = autofillFields.GetAutofillIds();
|
||||
builder.SetIgnoredIds(autofillIds);
|
||||
Bundle state = new Bundle();
|
||||
state.PutStringArray("AutoFillDisabledQueries", disabledValues.ToArray());
|
||||
|
||||
builder.SetClientState(state);
|
||||
try
|
||||
{
|
||||
var response = builder.Build();
|
||||
reply.PutExtra(AutofillManager.ExtraAuthenticationResult, response);
|
||||
|
||||
reply.PutExtra(AutofillManager.ExtraAuthenticationResult, (FillResponse)null);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -87,9 +87,7 @@ namespace keepass2android.services.AutofillBase
|
||||
}
|
||||
else
|
||||
{
|
||||
var builder = new FillResponse.Builder();
|
||||
builder.SetClientState(new Bundle());
|
||||
callback.OnSuccess(builder.Build());
|
||||
callback.OnSuccess(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user