From 9e0c6f50d61b63a47ac8bac1775984016b823696 Mon Sep 17 00:00:00 2001 From: Peter Storch Date: Wed, 13 Nov 2024 19:51:10 +0100 Subject: [PATCH] fix #434 crash in online-map-consent dialog --- build.gradle.kts | 4 ++-- fastlane/metadata/android/de-DE/changelogs/46.txt | 3 +++ fastlane/metadata/android/en-US/changelogs/46.txt | 3 +++ .../de/storchp/opentracks/osmplugin/map/MapActivity.kt | 6 ++---- 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 fastlane/metadata/android/de-DE/changelogs/46.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/46.txt diff --git a/build.gradle.kts b/build.gradle.kts index dc0f01e..23d0d3b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -40,8 +40,8 @@ android { compileSdk = 34 minSdk = 26 targetSdk = 34 - versionCode = 45 - versionName = "5.0.0" + versionCode = 46 + versionName = "5.0.1" applicationId = "de.storchp.opentracks.osmplugin" testInstrumentationRunnerArguments += mapOf("runnerBuilder" to "de.mannodermaus.junit5.AndroidJUnit5Builder") diff --git a/fastlane/metadata/android/de-DE/changelogs/46.txt b/fastlane/metadata/android/de-DE/changelogs/46.txt new file mode 100644 index 0000000..924a844 --- /dev/null +++ b/fastlane/metadata/android/de-DE/changelogs/46.txt @@ -0,0 +1,3 @@ +- Fix: Absturz im Online-Map-Consent Dialog +- Übersetzungen aktualisiert +- Abhängigkeiten aktualisiert \ No newline at end of file diff --git a/fastlane/metadata/android/en-US/changelogs/46.txt b/fastlane/metadata/android/en-US/changelogs/46.txt new file mode 100644 index 0000000..ea56434 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/46.txt @@ -0,0 +1,3 @@ +- Fix: crash in Online-Map-Consent dialog +- Updated translations +- Updated dependencies \ No newline at end of file diff --git a/src/main/kotlin/de/storchp/opentracks/osmplugin/map/MapActivity.kt b/src/main/kotlin/de/storchp/opentracks/osmplugin/map/MapActivity.kt index 5e869dc..8810492 100644 --- a/src/main/kotlin/de/storchp/opentracks/osmplugin/map/MapActivity.kt +++ b/src/main/kotlin/de/storchp/opentracks/osmplugin/map/MapActivity.kt @@ -526,10 +526,8 @@ open class MapsActivity : BaseActivity(), OnItemGestureListener( - dialog.findViewById(R.id.message), - "An AlertDialog must have a TextView with id.message" - ) as TextView).movementMethod = LinkMovementMethod.getInstance() + dialog.findViewById(android.R.id.message) + ?.movementMethod = LinkMovementMethod.getInstance() } /**