[apps] Graph: setType of the graph controller before updating the stack

(to reload the right banner view)
This commit is contained in:
Émilie Feral
2018-01-08 18:06:39 +01:00
committed by EmilieNumworks
parent d1808ae26f
commit e1b09b639d
2 changed files with 4 additions and 3 deletions

View File

@@ -39,9 +39,10 @@ bool GraphController::handleEvent(Ion::Events::Event event) {
return FunctionGraphController::handleEvent(event);
}
if (type() != GraphView::Type::Default && (event == Ion::Events::Back || event == Ion::Events::OK)) {
App * a = static_cast<App *>(app());
stackController()->handleEvent(Ion::Events::Back);
StackViewController * stack = stackController();
setType(GraphView::Type::Default);
App * a = static_cast<App *>(app());
stack->handleEvent(Ion::Events::Back);
setParentResponder(a->graphControllerParent());
return true;
}