Skip to content

Commit 8f725ce

Browse files
committed
changelog button opens changelog online
Signed-off-by: sds100 <[email protected]>
1 parent 7752976 commit 8f725ce

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/src/main/java/com/mapcode/map/MapScreen.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ fun AboutDialog(onDismiss: () -> Unit = {}) {
5555
val uriHandler = LocalUriHandler.current
5656
val websiteUrl = stringResource(R.string.website_url)
5757
val sourceCodeUrl = stringResource(R.string.source_code_url)
58+
val changelogUrl = stringResource(R.string.changelog_url)
5859

5960
ScrollableDialog(
6061
onDismiss = onDismiss, title = stringResource(R.string.about_dialog_title, BuildConfig.VERSION_NAME),
@@ -129,6 +130,7 @@ fun AboutDialog(onDismiss: () -> Unit = {}) {
129130
icon = painterResource(R.drawable.ic_outline_article_24),
130131
text = stringResource(R.string.changelog_button)
131132
) {
133+
uriHandler.openUri(changelogUrl)
132134
}
133135
DialogContentButton(
134136
icon = painterResource(R.drawable.ic_outline_code_24),

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@
4444
<string name="visit_website_notice">For questions, or more info in general, please visit our website.</string>
4545
<string name="website_url" translatable="false">https://mapcode.com</string>
4646
<string name="source_code_url" translatable="false">https://github.com/mapcode-foundation/mapcode-android-app</string>
47+
<string name="changelog_url" translatable="false">https://github.com/mapcode-foundation/mapcode-android-app/blob/main/CHANGELOG.md</string>
4748
<!-- Map screen -->
4849
</resources>

0 commit comments

Comments
 (0)