[apps/shared] In curve view, change subviews order to avoid useless

redrawing

Change-Id: I49e6548ac2a72f33d3d78b95a8f248a498f7e74e
This commit is contained in:
Émilie Feral
2017-04-04 18:29:05 +02:00
parent a3664a414d
commit 7f7f80d790

View File

@@ -474,14 +474,11 @@ int CurveView::numberOfSubviews() const {
View * CurveView::subviewAtIndex(int index) {
assert(index >= 0 && index < 3);
if (index == 0 && m_bannerView != nullptr) {
return m_bannerView;
}
if (index == 0 && m_bannerView != nullptr) {
return m_bannerView;
}
if (index == 1 && m_okView != nullptr) {
if (index == 0 && m_okView != nullptr) {
return m_okView;
}
if (index == 1 && m_bannerView != nullptr) {
return m_bannerView;
}
return m_cursorView;
}