This commit is contained in:
jpirnay
2026-03-23 18:45:25 +01:00
parent 3c4dd90bc1
commit 2b1cdcd85e
+4 -6
View File
@@ -150,9 +150,8 @@ void EpubReaderActivity::loop() {
mappedInput.getHeldTime() >= ReaderUtils::GO_HOME_MS && KOREADER_STORE.hasCredentials()) { mappedInput.getHeldTime() >= ReaderUtils::GO_HOME_MS && KOREADER_STORE.hasCredentials()) {
const int currentPage = section ? section->currentPage : 0; const int currentPage = section ? section->currentPage : 0;
const int totalPages = section ? section->pageCount : 0; const int totalPages = section ? section->pageCount : 0;
startActivityForResult( startActivityForResult(std::make_unique<KOReaderSyncActivity>(renderer, mappedInput, epub, epub->getPath(),
std::make_unique<KOReaderSyncActivity>(renderer, mappedInput, epub, epub->getPath(), currentSpineIndex, currentSpineIndex, currentPage, totalPages),
currentPage, totalPages),
[this](const ActivityResult& result) { handleSyncResult(result); }); [this](const ActivityResult& result) { handleSyncResult(result); });
return; return;
} }
@@ -418,9 +417,8 @@ void EpubReaderActivity::onReaderMenuConfirm(EpubReaderMenuActivity::MenuAction
hasParagraphIdx = true; hasParagraphIdx = true;
} }
} }
startActivityForResult( startActivityForResult(std::make_unique<KOReaderSyncActivity>(renderer, mappedInput, epub, epub->getPath(),
std::make_unique<KOReaderSyncActivity>(renderer, mappedInput, epub, epub->getPath(), currentSpineIndex, currentSpineIndex, currentPage, totalPages),
currentPage, totalPages),
[this](const ActivityResult& result) { handleSyncResult(result); }); [this](const ActivityResult& result) { handleSyncResult(result); });
} }
break; break;