Implemented displayNextView method
This commit is contained in:
parent
5ff79119c8
commit
87983cb00e
@ -213,7 +213,22 @@ boolean ScreenManager::displayView(const int UID)
|
|||||||
|
|
||||||
boolean ScreenManager::displayNextView()
|
boolean ScreenManager::displayNextView()
|
||||||
{
|
{
|
||||||
return true;
|
if(_currentView->UID < 0) return false;
|
||||||
|
|
||||||
|
if(_currentView == NO_CURRENT_VIEW && !isListEmpty(_viewLinkedList))
|
||||||
|
{
|
||||||
|
_currentView = _viewLinkedList;
|
||||||
|
return displayView();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!isListEmpty(_currentView->next))
|
||||||
|
{
|
||||||
|
_currentView = _currentView->next;
|
||||||
|
return displayView();
|
||||||
|
}
|
||||||
|
|
||||||
|
_currentView = _viewLinkedList;
|
||||||
|
return displayView();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenManager::invertDisplayColor(const boolean inverted)
|
void ScreenManager::invertDisplayColor(const boolean inverted)
|
||||||
|
Loading…
Reference in New Issue
Block a user