Add aditional RenderLocks

This commit is contained in:
jpirnay
2026-04-08 14:17:43 +02:00
parent 0abe6c6e58
commit 07906853d6
8 changed files with 66 additions and 19 deletions
+8 -2
View File
@@ -58,7 +58,10 @@ void EpubReaderActivity::onEnter() {
// Configure screen orientation based on settings
// NOTE: This affects layout math and must be applied before any render calls.
ReaderUtils::applyOrientation(renderer, SETTINGS.orientation);
{
RenderLock lock(*this);
ReaderUtils::applyOrientation(renderer, SETTINGS.orientation);
}
epub->setupCacheDir();
@@ -107,7 +110,10 @@ void EpubReaderActivity::onExit() {
Activity::onExit();
// Reset orientation back to portrait for the rest of the UI
renderer.setOrientation(GfxRenderer::Orientation::Portrait);
{
RenderLock lock(*this);
renderer.setOrientation(GfxRenderer::Orientation::Portrait);
}
APP_STATE.readerActivityLoadCount = 0;
APP_STATE.saveToFile();