mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps/sequence] Fix row offset when returning to previous menu
Change-Id: Ic3eee6bb1ecb991b97dc9190fab95774938d294e
This commit is contained in:
committed by
EmilieNumworks
parent
b08a29cab4
commit
387d3c9aa1
@@ -66,6 +66,7 @@ protected:
|
||||
virtual bool selectSubMenu(int selectedRow);
|
||||
virtual bool returnToPreviousMenu();
|
||||
virtual bool selectLeaf(int selectedRow) = 0;
|
||||
virtual int stackRowIndex(int selectedRow) { return selectedRow; }
|
||||
InputEventHandler * sender() { return m_sender; }
|
||||
virtual HighlightCell * leafCellAtIndex(int index) = 0;
|
||||
virtual HighlightCell * nodeCellAtIndex(int index) = 0;
|
||||
|
||||
@@ -157,7 +157,7 @@ bool NestedMenuController::handleEventForRow(Ion::Events::Event event, int rowIn
|
||||
}
|
||||
|
||||
bool NestedMenuController::selectSubMenu(int selectedRow) {
|
||||
m_stack.push(selectedRow, m_selectableTableView.contentOffset().y());
|
||||
m_stack.push(stackRowIndex(selectedRow), m_selectableTableView.contentOffset().y());
|
||||
m_listController.setFirstSelectedRow(0);
|
||||
Container::activeApp()->setFirstResponder(&m_listController);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user