From 3aa3a206370214b411e1653655e6b84ce5dcbfd5 Mon Sep 17 00:00:00 2001 From: Mysochenko Yuriy Date: Sun, 1 Oct 2023 11:26:49 +0200 Subject: [PATCH] open changelog from about screen --- .../main/java/com/sdex/activityrunner/about/AboutActivity.kt | 4 ++++ app/src/main/java/com/sdex/activityrunner/util/AppUtils.java | 1 + 2 files changed, 5 insertions(+) diff --git a/app/src/main/java/com/sdex/activityrunner/about/AboutActivity.kt b/app/src/main/java/com/sdex/activityrunner/about/AboutActivity.kt index 6034de7d..bd75c42d 100644 --- a/app/src/main/java/com/sdex/activityrunner/about/AboutActivity.kt +++ b/app/src/main/java/com/sdex/activityrunner/about/AboutActivity.kt @@ -48,6 +48,10 @@ class AboutActivity : BaseActivity() { LicensesDialogFragment() .show(supportFragmentManager, LicensesDialogFragment.TAG) } + + binding.version.setOnClickListener { + IntentUtils.openBrowser(this, AppUtils.CHANGELOG) + } } companion object { diff --git a/app/src/main/java/com/sdex/activityrunner/util/AppUtils.java b/app/src/main/java/com/sdex/activityrunner/util/AppUtils.java index 32a8b154..b9ef03f5 100644 --- a/app/src/main/java/com/sdex/activityrunner/util/AppUtils.java +++ b/app/src/main/java/com/sdex/activityrunner/util/AppUtils.java @@ -11,6 +11,7 @@ public class AppUtils { public static final String REPOSITORY = "https://github.com/sdex/ActivityManager"; public static final String ISSUES_TRACKER = REPOSITORY + "/issues"; + public static final String CHANGELOG = REPOSITORY + "/blob/master/CHANGELOG.md"; public static void openLink(Context context, String url) { try {