mirror of
https://github.com/Darkrock-Studios/hammer-editor.git
synced 2026-08-14 12:03:13 +00:00
The suspend FileKit dialog API resolves the ActivityResultRegistry from a global set only by FileKit.init(). It was never called on any activity, so the picker in ProjectRootActivity (encyclopedia) either targeted a stale registry (result never delivered) or threw and was silently swallowed. Call FileKit.init(this) in both activities' onCreate. Once the picker returned a file, readExternalFile crashed: stageIntoCache hands it a plain cache file path, but AndroidExternalFileIo forced every path through ContentResolver (content:// only). Branch on URI scheme so file paths are read directly, matching desktop/iOS. Concise alternative if you prefer a shorter body: Fix Encyclopedia image selection on Android - Call FileKit.init(this) in both activities so the suspend picker API has a live ActivityResultRegistry; without it the encyclopedia picker failed silently. - AndroidExternalFileIo.readExternalFile now handles plain file paths (not just content:// URIs), fixing the crash on the staged cache path. |
||
|---|---|---|
| .. | ||
| playstore | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||