|
@@ -10,7 +10,6 @@ import com.afollestad.materialdialogs.MaterialDialog
|
|
|
import com.mikepenz.aboutlibraries.LibsBuilder
|
|
|
import eu.kanade.tachiyomi.BuildConfig
|
|
|
import eu.kanade.tachiyomi.R
|
|
|
-import eu.kanade.tachiyomi.data.preference.PreferenceKeys as Keys
|
|
|
import eu.kanade.tachiyomi.data.updater.UpdateChecker
|
|
|
import eu.kanade.tachiyomi.data.updater.UpdateResult
|
|
|
import eu.kanade.tachiyomi.data.updater.UpdaterService
|
|
@@ -46,7 +45,7 @@ class AboutController : SettingsController() {
|
|
|
titleRes = R.string.pref_category_about
|
|
|
|
|
|
preference {
|
|
|
- key = Keys.aboutVersion
|
|
|
+ key = "pref_about_version"
|
|
|
titleRes = R.string.version
|
|
|
summary = if (BuildConfig.DEBUG) {
|
|
|
"Preview r${BuildConfig.COMMIT_COUNT} (${BuildConfig.COMMIT_SHA})"
|
|
@@ -57,20 +56,20 @@ class AboutController : SettingsController() {
|
|
|
onClick { copyDebugInfo() }
|
|
|
}
|
|
|
preference {
|
|
|
- key = Keys.aboutBuildTime
|
|
|
+ key = "pref_about_build_time"
|
|
|
titleRes = R.string.build_time
|
|
|
summary = getFormattedBuildTime()
|
|
|
}
|
|
|
if (isUpdaterEnabled) {
|
|
|
preference {
|
|
|
- key = Keys.aboutCheckForUpdates
|
|
|
+ key = "pref_about_check_for_updates"
|
|
|
titleRes = R.string.check_for_updates
|
|
|
|
|
|
onClick { checkVersion() }
|
|
|
}
|
|
|
}
|
|
|
preference {
|
|
|
- key = Keys.aboutWhatsNew
|
|
|
+ key = "pref_about_whats_new"
|
|
|
titleRes = R.string.whats_new
|
|
|
|
|
|
onClick {
|
|
@@ -86,7 +85,7 @@ class AboutController : SettingsController() {
|
|
|
}
|
|
|
if (BuildConfig.DEBUG) {
|
|
|
preference {
|
|
|
- key = Keys.aboutNotices
|
|
|
+ key = "pref_about_notices"
|
|
|
titleRes = R.string.notices
|
|
|
|
|
|
onClick {
|
|
@@ -100,7 +99,7 @@ class AboutController : SettingsController() {
|
|
|
titleRes = R.string.about_resources
|
|
|
|
|
|
preference {
|
|
|
- key = Keys.aboutWebsite
|
|
|
+ key = "pref_about_website"
|
|
|
titleRes = R.string.website
|
|
|
val url = "https://tachiyomi.org"
|
|
|
summary = url
|
|
@@ -110,7 +109,7 @@ class AboutController : SettingsController() {
|
|
|
}
|
|
|
}
|
|
|
preference {
|
|
|
- key = Keys.aboutDiscord
|
|
|
+ key = "pref_about_discord"
|
|
|
title = "Discord"
|
|
|
val url = "https://discord.gg/tachiyomi"
|
|
|
summary = url
|
|
@@ -120,7 +119,7 @@ class AboutController : SettingsController() {
|
|
|
}
|
|
|
}
|
|
|
preference {
|
|
|
- key = Keys.aboutGitHub
|
|
|
+ key = "pref_about_github"
|
|
|
title = "GitHub"
|
|
|
val url = "https://github.com/inorichi/tachiyomi"
|
|
|
summary = url
|
|
@@ -130,7 +129,7 @@ class AboutController : SettingsController() {
|
|
|
}
|
|
|
}
|
|
|
preference {
|
|
|
- key = Keys.aboutLabelExtensions
|
|
|
+ key = "pref_about_label_extensions"
|
|
|
titleRes = R.string.label_extensions
|
|
|
val url = "https://github.com/inorichi/tachiyomi-extensions"
|
|
|
summary = url
|
|
@@ -140,7 +139,7 @@ class AboutController : SettingsController() {
|
|
|
}
|
|
|
}
|
|
|
preference {
|
|
|
- key = Keys.aboutLicenses
|
|
|
+ key = "pref_about_licenses"
|
|
|
titleRes = R.string.licenses
|
|
|
|
|
|
onClick {
|