[escher] Optimize redrawing when changing features in cells (color,

highlight, even)

Change-Id: I0afa8b6fad656d578bb8e071183646196bc816f9
This commit is contained in:
Émilie Feral
2017-11-21 14:45:33 +01:00
parent 5e822a8001
commit 35b979798d
6 changed files with 24 additions and 9 deletions

View File

@@ -126,6 +126,7 @@ void ListController::willDisplayCellAtLocation(HighlightCell * cell, int i, int
EvenOddCell * myCell = (EvenOddCell *)cell;
myCell->setEven(j%2 == 0);
myCell->setHighlighted(i == selectedColumn() && j == selectedRow());
myCell->reloadCell();
}
int ListController::numberOfButtons(ButtonRowController::Position position) const {