[apps] Don't forget to call viewWillAppear

At the moment ViewController::viewWillAppear doesn't do anything, so
there is no real impact. But if we want to use it it needs to be called
from subclasses.
This commit is contained in:
Romain Goyet
2020-02-13 15:51:53 -05:00
committed by Ecco
parent c23ad0c882
commit 7f43b73049
21 changed files with 21 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ void FloatParameterController<T>::didBecomeFirstResponder() {
template<typename T>
void FloatParameterController<T>::viewWillAppear() {
ViewController::viewWillAppear();
if (selectedRow() == -1 || selectedRow() == numberOfRows()-1) {
selectCellAtLocation(0, 0);
} else {