mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-02-05 12:42:34 -05:00
Link to Wikipedia if app.license == PublicDomain
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
216308bf06
commit
af5e58e816
@@ -1077,7 +1077,12 @@ public class AppDetailsRecyclerViewAdapter
|
||||
|
||||
// License link
|
||||
if (!TextUtils.isEmpty(app.license)) {
|
||||
String url = "https://spdx.org/licenses/" + app.license + ".html";
|
||||
String url;
|
||||
if (app.license.equals("PublicDomain")) {
|
||||
url = "https://en.wikipedia.org/wiki/Public_domain";
|
||||
} else {
|
||||
url = "https://spdx.org/licenses/" + app.license + ".html";
|
||||
}
|
||||
if (uriIsSetAndCanBeOpened(url)) {
|
||||
addLinkItemView(contentView, R.string.menu_license, R.drawable.ic_license, url, app.license);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user