summaryrefslogtreecommitdiff
path: root/wipfel-droid/app/src/main/kotlin/org
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 18:28:26 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 18:28:26 +0100
commita41c1ff25746874fa5a1eed5e62352a28d7515f9 (patch)
tree0c4fb28c846a51fb0740ee40c320416fbeaf5ef3 /wipfel-droid/app/src/main/kotlin/org
parenta159551d058606a673b14c5568aa72cf538f9934 (diff)
wipfel-droid: Android wrapper APK (WebView + ACCESS_MEDIA_LOCATION)
Thin wrapper so wipfel can read original photo bytes: browsers cannot declare ACCESS_MEDIA_LOCATION, so the OS always redacts GPS EXIF from images they read. Our own app declares and requests it (plus READ_MEDIA_IMAGES) and gets the intact files. - WebView served from a loopback AssetServer (fetch/WASM need a real HTTP origin; file:// is blocked) - file picker wired through WebChromeClient (accepts any file type) - zero androidx dependencies, plain Activity, minSdk 29 - build.sh: wasm release site -> assets -> assembleDebug (~3MB APK) - loader: fall back to plain gipfel.dat (aapt gunzips .gz assets)
Diffstat (limited to 'wipfel-droid/app/src/main/kotlin/org')
-rw-r--r--wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt
index 8a62a4a..ae2485d 100644
--- a/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt
+++ b/wipfel-droid/app/src/main/kotlin/org/flpsed/wipfel/MainActivity.kt
@@ -81,7 +81,7 @@ class MainActivity : Activity() {
val uris: Array<Uri>? = if (resultCode == RESULT_OK && data != null) {
val clip = data.clipData
when {
- clip != null -> Array(clip.itemCount) { clip.getItem(it).uri }
+ clip != null -> Array(clip.itemCount) { clip.getItemAt(it).uri }
data.data != null -> arrayOf(data.data!!)
else -> null
}