[apps] Less operations in willExitResponderChain if exiting app

If nextFirstResponder is nullptr, it means we are exiting the app, so
there is no need to relayout, reselect, ...
We did it bbefore because a long time ago, we used to keep all apps side
by side so they had to be thouroughly cleaned when exiting
This commit is contained in:
Léa Saviot
2020-01-21 11:56:56 +01:00
parent 90e5a08d3a
commit 88ab0e686c
9 changed files with 18 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ void TabTableController::viewWillAppear() {
void TabTableController::willExitResponderChain(Responder * nextFirstResponder) {
if (nextFirstResponder == tabController()) {
assert(tabController() != nullptr);
selectableTableView()->deselectTable();
selectableTableView()->scrollToCell(0,0);
}