From 7ab6d5ac4b0afc330c67109b3651dc1fab2d3b02 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Sun, 8 Mar 2026 10:13:36 +0100 Subject: [PATCH] Proper fix --- src/activities/boot_sleep/SleepActivity.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/activities/boot_sleep/SleepActivity.cpp b/src/activities/boot_sleep/SleepActivity.cpp index 03b41963..87b1e1e4 100644 --- a/src/activities/boot_sleep/SleepActivity.cpp +++ b/src/activities/boot_sleep/SleepActivity.cpp @@ -19,7 +19,6 @@ #include "components/UITheme.h" #include "fontIds.h" #include "images/Logo120.h" -#include "util/StringUtils.h" namespace { @@ -295,7 +294,7 @@ std::string SleepActivity::getBookOverlayText(const std::string& bookPath) const std::string progressLine = "Reading..."; // Default progress text // Extract metadata based on file type - if (StringUtils::checkFileExtension(bookPath, ".xtc") || StringUtils::checkFileExtension(bookPath, ".xtch")) { + if (FsHelpers::checkFileExtension(bookPath, ".xtc") || FsHelpers::checkFileExtension(bookPath, ".xtch")) { // Handle XTC file Xtc xtc(bookPath, "/.crosspoint"); if (xtc.load()) { @@ -318,7 +317,7 @@ std::string SleepActivity::getBookOverlayText(const std::string& bookPath) const f.close(); } } - } else if (StringUtils::checkFileExtension(bookPath, ".txt")) { + } else if (FsHelpers::checkFileExtension(bookPath, ".txt")) { // Handle TXT file Txt txt(bookPath, "/.crosspoint"); if (txt.load()) { @@ -361,7 +360,7 @@ std::string SleepActivity::getBookOverlayText(const std::string& bookPath) const f.close(); } } - } else if (StringUtils::checkFileExtension(bookPath, ".epub")) { + } else if (FsHelpers::checkFileExtension(bookPath, ".epub")) { // Handle EPUB file Epub epub(bookPath, "/.crosspoint"); if (epub.load(true, true)) { // Skip CSS loading for metadata only