mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-23 05:35:51 +03:00
Add Twitter link to About section
This commit is contained in:
parent
33992d80bf
commit
7382042288
1 changed files with 20 additions and 17 deletions
|
@ -92,43 +92,46 @@ class AboutController : SettingsController() {
|
||||||
preference {
|
preference {
|
||||||
key = "pref_about_website"
|
key = "pref_about_website"
|
||||||
titleRes = R.string.website
|
titleRes = R.string.website
|
||||||
val url = "https://tachiyomi.org"
|
"https://tachiyomi.org".also {
|
||||||
summary = url
|
summary = it
|
||||||
onClick {
|
onClick { openInBrowser(it) }
|
||||||
openInBrowser(url)
|
}
|
||||||
|
}
|
||||||
|
preference {
|
||||||
|
key = "pref_about_twitter"
|
||||||
|
title = "Twitter"
|
||||||
|
"https://twitter.com/tachiyomiorg".also {
|
||||||
|
summary = it
|
||||||
|
onClick { openInBrowser(it) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
key = "pref_about_discord"
|
key = "pref_about_discord"
|
||||||
title = "Discord"
|
title = "Discord"
|
||||||
val url = "https://discord.gg/tachiyomi"
|
"https://discord.gg/tachiyomi".also {
|
||||||
summary = url
|
summary = it
|
||||||
onClick {
|
onClick { openInBrowser(it) }
|
||||||
openInBrowser(url)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
key = "pref_about_github"
|
key = "pref_about_github"
|
||||||
title = "GitHub"
|
title = "GitHub"
|
||||||
val url = "https://github.com/tachiyomiorg/tachiyomi"
|
"https://github.com/tachiyomiorg/tachiyomi".also {
|
||||||
summary = url
|
summary = it
|
||||||
onClick {
|
onClick { openInBrowser(it) }
|
||||||
openInBrowser(url)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
key = "pref_about_label_extensions"
|
key = "pref_about_label_extensions"
|
||||||
titleRes = R.string.label_extensions
|
titleRes = R.string.label_extensions
|
||||||
val url = "https://github.com/tachiyomiorg/tachiyomi-extensions"
|
"https://github.com/tachiyomiorg/tachiyomi-extensions".also {
|
||||||
summary = url
|
summary = it
|
||||||
onClick {
|
onClick { openInBrowser(it) }
|
||||||
openInBrowser(url)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
key = "pref_about_licenses"
|
key = "pref_about_licenses"
|
||||||
titleRes = R.string.licenses
|
titleRes = R.string.licenses
|
||||||
|
|
||||||
onClick {
|
onClick {
|
||||||
LibsBuilder()
|
LibsBuilder()
|
||||||
.withActivityTitle(activity!!.getString(R.string.licenses))
|
.withActivityTitle(activity!!.getString(R.string.licenses))
|
||||||
|
|
Loading…
Reference in a new issue