Support large opds result listings without an OOM
This commit is contained in:
@@ -37,7 +37,7 @@ class OpdsBookBrowserActivity final : public Activity {
|
||||
private:
|
||||
ButtonNavigator buttonNavigator;
|
||||
BrowserState state = BrowserState::LOADING;
|
||||
std::vector<OpdsEntry> entries;
|
||||
std::vector<uint32_t> entryOffsets;
|
||||
std::vector<std::string> navigationHistory;
|
||||
std::string currentPath;
|
||||
std::string searchTemplate;
|
||||
@@ -54,6 +54,8 @@ class OpdsBookBrowserActivity final : public Activity {
|
||||
|
||||
OpdsServer server; // Copied at construction — safe even if the store changes during browsing
|
||||
|
||||
OpdsEntry getEntry(size_t index) const;
|
||||
|
||||
void checkAndConnectWifi();
|
||||
void launchWifiSelection();
|
||||
void onWifiSelectionComplete(bool connected);
|
||||
|
||||
Reference in New Issue
Block a user