public override void OnSaveRequest(SaveRequest request, SaveCallback callback) { var context = request.FillContexts; var structure = context[context.Count - 1].Structure; var packageName = structure.ActivityComponent.PackageName; if (!SharedPrefsPackageVerificationRepository.GetInstance() .PutPackageSignatures(ApplicationContext, packageName)) { callback.OnFailure( ApplicationContext.GetString(Resource.String.invalid_package_signature)); return; } var data = request.ClientState; if (CommonUtil.VERBOSE) { Log.Verbose(CommonUtil.TAG, "onSaveRequest(): data=" + CommonUtil.BundleToString(data)); CommonUtil.DumpStructure(structure); } var parser = new StructureParser(ApplicationContext, structure); parser.ParseForSave(); var filledAutofillFieldCollection = parser.GetClientFormData(); SharedPrefsAutofillRepository.GetInstance() .SaveFilledAutofillFieldCollection(this, filledAutofillFieldCollection); }
public override void OnSaveRequest(SaveRequest request, SaveCallback callback) { var context = request.FillContexts; var structure = context[context.Count - 1].Structure; var data = request.ClientState; Log.Debug(CommonUtil.Tag, "onSaveRequest(): data=" + CommonUtil.BundleToString(data)); var parser = new StructureParser(structure); parser.ParseForSave(); var filledAutofillFieldCollection = parser.ClientFormData; SharedPrefsAutofillRepository.GetInstance(this).SaveFilledAutofillFieldCollection(filledAutofillFieldCollection); }