Skip to content

Commit

Permalink
Fix links to new Github projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mtotschnig committed Jun 20, 2024
1 parent cb320fa commit 8896744
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,21 @@ import android.content.DialogInterface
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.*
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -96,7 +107,7 @@ class VersionDialogFragment : ComposeBaseDialogFragment(), DialogInterface.OnCli
VersionInfoButton(
version = version,
resPrefix = "project_board_",
baseUri = if (version.code < 740) "https://github.com/mtotschnig/MyExpenses/projects/" else "https://github.com/mtotschnig/projects/",
baseUri = if (version.code < 740) "https://github.com/mtotschnig/MyExpenses/projects/" else "https://github.com/users/mtotschnig/projects/",
drawableRes = R.drawable.ic_github,
contentDescription = "Github"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class ChangeLogGenerator {
getString(resolveMoreInfo("version_more_info_", versionInfo)!!)

private fun Context.githubUrl(versionInfo: VersionInfo) =
"https://github.com/mtotschnig/MyExpenses/projects/${githubLink(versionInfo)}"
"https://github.com/users/mtotschnig/projects/${githubLink(versionInfo)}"

private fun Context.mastodonUrl(versionInfo: VersionInfo) =
"https://mastodon.social/@myexpenses/${mastodonLink(versionInfo)}"
Expand Down

0 comments on commit 8896744

Please sign in to comment.