From 3c550c1781e64c374b63055c6f99c256785bf75d Mon Sep 17 00:00:00 2001 From: inorichi Date: Mon, 28 Aug 2017 10:00:13 +0200 Subject: [PATCH] Kotlin 1.1.4. Add discord link in about --- app/build.gradle | 2 +- .../tachiyomi/ui/setting/SettingsAboutController.kt | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 187fccf8c6..f3bf3cee8c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -217,7 +217,7 @@ dependencies { } buildscript { - ext.kotlin_version = '1.1.3' + ext.kotlin_version = '1.1.4' repositories { mavenCentral() } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutController.kt index 3aa9398e95..1a2f6c458b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutController.kt @@ -22,6 +22,9 @@ import java.text.ParseException import java.text.SimpleDateFormat import java.util.* import eu.kanade.tachiyomi.data.preference.PreferenceKeys as Keys +import android.content.Intent +import android.net.Uri + class SettingsAboutController : SettingsController() { @@ -66,6 +69,15 @@ class SettingsAboutController : SettingsController() { isVisible = false } } + preference { + title = "Discord" + val url = "https://discord.gg/WrBkRk4" + summary = url + onClick { + val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) + startActivity(intent) + } + } preference { titleRes = R.string.version summary = if (BuildConfig.DEBUG)