From 724234ef093eb9bc57d1d318e5a8a334928c3ef7 Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Thu, 17 May 2018 00:55:57 +0200 Subject: [PATCH] AppDetails: don't mangle spdx link. Stripping the `+` form the license link will direct to the wrong spdx page. (This would also need changing anyway because of spdx v4.0.0) closes fdroid/fdroidclient#1472 --- .../org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java b/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java index 9a82a6947..4e19b49d9 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java +++ b/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java @@ -837,9 +837,6 @@ public class AppDetailsRecyclerViewAdapter // License link if (!TextUtils.isEmpty(app.license)) { String firstLicense = app.license.split(",")[0]; - if (firstLicense.endsWith("+")) { // the + is SPDX syntax on top of the license name - firstLicense = firstLicense.substring(0, firstLicense.length() - 1); - } String url = "https://spdx.org/licenses/" + firstLicense + ".html"; if (uriIsSetAndCanBeOpened(url)) { addLinkItemView(contentView, R.string.menu_license, R.drawable.ic_license, url, app.license);