Skip to content

Commit

Permalink
fix #434 crash in online-map-consent dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorch committed Nov 13, 2024
1 parent b0e64c9 commit 9e0c6f5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions fastlane/metadata/android/de-DE/changelogs/46.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Fix: Absturz im Online-Map-Consent Dialog
- Übersetzungen aktualisiert
- Abhängigkeiten aktualisiert
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/46.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Fix: crash in Online-Map-Consent dialog
- Updated translations
- Updated dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,8 @@ open class MapsActivity : BaseActivity(), OnItemGestureListener<MarkerInterface?
.setNegativeButton(android.R.string.cancel, null)
.create()
dialog.show()
(Objects.requireNonNull<Any?>(
dialog.findViewById<View?>(R.id.message),
"An AlertDialog must have a TextView with id.message"
) as TextView).movementMethod = LinkMovementMethod.getInstance()
dialog.findViewById<TextView?>(android.R.id.message)
?.movementMethod = LinkMovementMethod.getInstance()
}

/**
Expand Down

0 comments on commit 9e0c6f5

Please sign in to comment.