From e463955faaabca9398f327d1c3ce885852343a73 Mon Sep 17 00:00:00 2001 From: Romain Hunault Date: Fri, 5 Jun 2020 23:16:00 +0000 Subject: [PATCH] Merge branch '21-set-a-link-to-the-release-note' into 'v1-pie' Resolve "Set a link to the release note" Closes #21 See merge request e/os/android_packages_apps_Updater!24 (cherry picked from commit 51322bfbcaf49752c00cdea6208ffd6a96c9ddb9) a6ece125 Point the changelog url to the Release note 10c18a54 Fix the string 3e0974ad Fix URL 7b4de448 Set the correct number --- res/values/strings.xml | 2 +- src/org/lineageos/updater/misc/Utils.java | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index f178856d..15b5578e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -73,7 +73,7 @@ Copy URL Export update Show changelog - https://images.ecloud.global/%3$s/%1$s/e-%2$s.zip.changelog + https://gitlab.e.foundation/e/os/releases/-/releases/v%1$s-pie Prioritize update process New updates found diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java index b46378c8..4d7d4ec5 100644 --- a/src/org/lineageos/updater/misc/Utils.java +++ b/src/org/lineageos/updater/misc/Utils.java @@ -168,14 +168,10 @@ public class Utils { } public static String getChangelogURL(Context context) { - String device = SystemProperties.get(Constants.PROP_NEXT_DEVICE, - SystemProperties.get(Constants.PROP_DEVICE)); - - String version = SystemProperties.get(Constants.PROP_VERSION); - String releaseType = SystemProperties.get(Constants.PROP_RELEASE_TYPE); + String buildVersion = SystemProperties.get(Constants.PROP_BUILD_VERSION); - return context.getString(R.string.menu_changelog_url, device, version, releaseType); + return context.getString(R.string.menu_changelog_url, buildVersion); } public static void triggerUpdate(Context context, String downloadId) { -- GitLab