From 1ac1c6dc9ebe780bd3eb91bb8ac7fab3185d75c9 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 24 Apr 2020 10:29:35 -0400 Subject: [PATCH] Link to GitHub commits for preview build changelog --- .../tachiyomi/ui/more/AboutController.kt | 19 ++++++++++++++++--- app/src/main/res/values/strings.xml | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt index 2600cc90a6..97e4c5f722 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt @@ -86,11 +86,24 @@ class AboutController : SettingsController() { } } preference { - titleRes = R.string.build_time - summary = getFormattedBuildTime() + titleRes = R.string.changelog onClick { - ChangelogDialogController().showDialog(router) + if (BuildConfig.DEBUG) { + val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/inorichi/tachiyomi/commits/master")) + startActivity(intent) + } else { + ChangelogDialogController().showDialog(router) + } + } + } + if (BuildConfig.DEBUG) { + preference { + titleRes = R.string.notices + + onClick { + ChangelogDialogController().showDialog(router) + } } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3023b8c458..c38e4416eb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -355,8 +355,8 @@ Website Version Build time - Notices Changelog + Preview build notices Open source licenses Check for updates Automatically check for new app versions