diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-18 23:32:33 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-18 23:32:33 -1000 |
| commit | 2052c40b2b8914cd0965c80bc504c86766d20443 (patch) | |
| tree | 5a8cfe5278f795279b40d4d6910f33312c1dba95 /android-app/app/build.gradle | |
| parent | 4d637d284dce6fc674599c226dd063c442fd350f (diff) | |
fix: rasterize anchor icon vector drawable to prevent startup crash
BitmapFactory.decodeResource returns null for XML vector drawables.
Passing null to MapLibre's style.addImage caused a NPE that propagated
through JNI as PendingJavaException, crashing the app on every launch.
Fix uses ContextCompat.getDrawable + Canvas rasterization, matching
the pattern already used in setupTidalCurrentMapLayers.
Also upgrades MapLibre Android SDK from 11.5.1 to 13.0.1.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/build.gradle')
| -rw-r--r-- | android-app/app/build.gradle | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android-app/app/build.gradle b/android-app/app/build.gradle index 0d5703d..7e5ab0f 100644 --- a/android-app/app/build.gradle +++ b/android-app/app/build.gradle @@ -88,7 +88,7 @@ dependencies { implementation 'com.google.android.gms:play-services-location:21.2.0' // Map - implementation 'org.maplibre.gl:android-sdk:11.5.1' + implementation 'org.maplibre.gl:android-sdk:13.0.1' // Testing testImplementation 'junit:junit:4.13.2' |
