Minor changes to avoid double counting
This commit is contained in:
@@ -917,15 +917,22 @@ void TxtReaderActivity::onButtonAction(const CrossPointSettings::BUTTON_ACTION a
|
||||
}
|
||||
break;
|
||||
case BA::BTN_PAGE_FORWARD_10:
|
||||
const int prevPage = currentPage;
|
||||
currentPage += 10;
|
||||
clampPage();
|
||||
globalReadingSessionTracker().onPageTurn();
|
||||
if (currentPage != prevPage) {
|
||||
globalReadingSessionTracker().onPageTurn();
|
||||
}
|
||||
requestUpdate();
|
||||
break;
|
||||
case BA::BTN_PAGE_BACK_10:
|
||||
const int prevPage = currentPage;
|
||||
currentPage -= 10;
|
||||
clampPage();
|
||||
globalReadingSessionTracker().onPageTurn();
|
||||
if (currentPage != prevPage) {
|
||||
globalReadingSessionTracker().onPageTurn();
|
||||
}
|
||||
|
||||
requestUpdate();
|
||||
break;
|
||||
case BA::BTN_STAR_PAGE:
|
||||
|
||||
Reference in New Issue
Block a user