fix(android): keep the start page's boot scripts in the offline copy

theme-boot.js and shell-guard.js come from the public folder, which the
build manifest does not list, so an offline start waited on the unreachable
server for them before the first paint. They are now stored and refreshed
on every launch.
This commit is contained in:
Maurice
2026-11-23 14:52:57 +01:00
parent 4fead3259d
commit a701d89fb9
3 changed files with 42 additions and 2 deletions
@@ -556,7 +556,7 @@ public class TrekShellPlugin extends Plugin {
if (path == null || path.isEmpty()) continue;
String clean = path.startsWith("/") ? path.substring(1) : path;
keep.add(clean);
if (TrekOfflineShell.hasFile(context, clean)) continue;
if (clean.contains("/") && TrekOfflineShell.hasFile(context, clean)) continue;
byte[] data = download(server, clean, null);
if (data == null || !TrekOfflineShell.saveFile(context, clean, data)) complete = false;
}