[apps/*/expression_model_list_controller] editExpression sets text instead of InputViewController::edit

This commit is contained in:
Ruben Dashyan
2019-07-26 16:24:19 +02:00
committed by LeaNumworks
parent 7d9f479f3c
commit 1d966ce23c
4 changed files with 12 additions and 17 deletions

View File

@@ -25,13 +25,10 @@ InputViewController::InputViewController(Responder * parentResponder, ViewContro
{
}
void InputViewController::edit(Responder * caller, Ion::Events::Event event, void * context, const char * initialText, Invocation::Action successAction, Invocation::Action failureAction) {
void InputViewController::edit(Responder * caller, Ion::Events::Event event, void * context, Invocation::Action successAction, Invocation::Action failureAction) {
m_successAction = Invocation(successAction, context);
m_failureAction = Invocation(failureAction, context);
displayModalViewController(&m_expressionFieldController, 1.0f, 1.0f);
if (initialText != nullptr) {
m_expressionFieldController.expressionField()->setText(initialText);
}
m_expressionFieldController.expressionField()->handleEvent(event);
}