yaclf
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user