fix issue with form template action click for agent
@@ -71,9 +71,13 @@ public class KmFormRichMessage extends AlRichMessage {
if (submitButtonModel != null && TextUtils.isEmpty(submitButtonModel.getType())) {
submitButtonModel.setType(KmFormPayloadModel.Type.SUBMIT.getValue());
}
+ if (context != null && context.getApplicationContext() instanceof ALRichMessageListener) {
+ ((ALRichMessageListener) context.getApplicationContext()).onAction(context, submitButtonModel.getType(), message, submitButtonModel.getAction(), null);
+ } else {
listener.onAction(context, submitButtonModel.getType(), message, submitButtonModel.getAction(), null);
}
}
+ }
});
flowLayout.addView(view);
}
