mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 10:09:53 +01:00
[apps/shared] In curve view, change subviews order to avoid useless
redrawing Change-Id: I49e6548ac2a72f33d3d78b95a8f248a498f7e74e
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user