[escher] Correct error in tab view controller

Change-Id: I18cfee524bc3141a218ede3248f9c42de2022999
This commit is contained in:
Émilie Feral
2017-04-13 15:01:39 +02:00
parent 9ecb2c0c53
commit ba1d7cf604

View File

@@ -162,9 +162,9 @@ const char * TabViewController::tabName(uint8_t index) {
void TabViewController::viewWillAppear() {
if (m_activeChildIndex < 0) {
setActiveTab(0);
setActiveTab(0, true);
} else {
setActiveTab(m_activeChildIndex);
setActiveTab(m_activeChildIndex, true);
}
ViewController * activeVC = m_children[m_activeChildIndex];
activeVC->viewWillAppear();