From 414f1eb25c505dfa8482e80d6a5d660844d2a471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 3 Jan 2020 12:25:45 +0100 Subject: [PATCH] [apps/calculation] HistoryController: ensure to display burger views when scrolling up and down --- apps/calculation/history_controller.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/calculation/history_controller.cpp b/apps/calculation/history_controller.cpp index 5a4a99554..3cc81fa77 100644 --- a/apps/calculation/history_controller.cpp +++ b/apps/calculation/history_controller.cpp @@ -208,6 +208,12 @@ void HistoryController::historyViewCellDidChangeSelection(HistoryViewCell ** cel // Fill the selected cell and the previous selected cell because cells repartition might have changed *cell = static_cast(m_selectableTableView.selectedCell()); *previousCell = static_cast(m_selectableTableView.cellAtLocation(previousSelectedCellX, previousSelectedCellY)); + /* 'reloadData' calls 'willDisplayCellForIndex' for each cell while the table + * has been deselected. To reload the expanded cell, we call one more time + * 'willDisplayCellForIndex' but once the right cell has been selected. */ + if (*cell) { + willDisplayCellForIndex(*cell, selectedRow()); + } } }