Skip to content

Commit e102ef5

Browse files
committed
feat: hide source code and changelog buttons until repo is made public
Signed-off-by: sds100 <[email protected]>
1 parent c055770 commit e102ef5

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

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

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ private fun FloatingInfoAreaLayout(
205205
private fun AboutDialog(onDismiss: () -> Unit = {}) {
206206
val uriHandler = LocalUriHandler.current
207207
val websiteUrl = stringResource(R.string.website_url)
208-
val sourceCodeUrl = stringResource(R.string.source_code_url)
209-
val changelogUrl = stringResource(R.string.changelog_url)
208+
// val sourceCodeUrl = stringResource(R.string.source_code_url)
209+
// val changelogUrl = stringResource(R.string.changelog_url)
210210

211211
ScrollableDialog(
212212
onDismiss = onDismiss, title = stringResource(R.string.about_dialog_title, BuildConfig.VERSION_NAME),
@@ -277,18 +277,19 @@ private fun AboutDialog(onDismiss: () -> Unit = {}) {
277277
) {
278278
uriHandler.openUri(websiteUrl)
279279
}
280-
DialogContentButton(
281-
icon = painterResource(R.drawable.ic_outline_article_24),
282-
text = stringResource(R.string.changelog_button)
283-
) {
284-
uriHandler.openUri(changelogUrl)
285-
}
286-
DialogContentButton(
287-
icon = painterResource(R.drawable.ic_outline_code_24),
288-
text = stringResource(R.string.source_code_button)
289-
) {
290-
uriHandler.openUri(sourceCodeUrl)
291-
}
280+
// HIDE THESE UNTIL REPO IS MADE PUBLIC
281+
// DialogContentButton(
282+
// icon = painterResource(R.drawable.ic_outline_article_24),
283+
// text = stringResource(R.string.changelog_button)
284+
// ) {
285+
// uriHandler.openUri(changelogUrl)
286+
// }
287+
// DialogContentButton(
288+
// icon = painterResource(R.drawable.ic_outline_code_24),
289+
// text = stringResource(R.string.source_code_button)
290+
// ) {
291+
// uriHandler.openUri(sourceCodeUrl)
292+
// }
292293
}
293294
}
294295
}

0 commit comments

Comments
 (0)