Link to GitHub commits for preview build changelog

This commit is contained in:
arkon
2020-04-24 10:29:35 -04:00
parent 87ffd6eef2
commit 1ac1c6dc9e
2 changed files with 17 additions and 4 deletions

View File

@ -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)
}
}
}