[apps/calculation] HistoryViewCell: when changing SubviewType, set the

right subcell as first responder!

This fixes the following bug: when selecting a cell whose content is too
long to be displayed, the scrolling is broken
This commit is contained in:
Émilie Feral
2020-04-02 17:09:07 +02:00
committed by LeaNumworks
parent 90222c3f45
commit 300de8fb15

View File

@@ -30,6 +30,7 @@ void HistoryViewCellDataSource::setSelectedSubviewType(SubviewType subviewType,
if (selectedCell) {
selectedCell->reloadSubviewHighlight();
selectedCell->cellDidSelectSubview(subviewType, previousSubviewType);
Container::activeApp()->setFirstResponder(selectedCell);
}
if (previouslySelectedCell) {
previouslySelectedCell->cellDidSelectSubview(SubviewType::Input);