Make license in MediaDetail clickable

This commit is contained in:
Mikel 2017-07-15 09:21:35 +02:00
parent 0a6e8b0cc8
commit 1044fe13ae
2 changed files with 32 additions and 1 deletions

View file

@ -1,5 +1,7 @@
package fr.free.nrw.commons;
import android.support.annotation.Nullable;
public class License {
String key;
String template;
@ -36,7 +38,7 @@ public class License {
}
}
public String getUrl(String language) {
public @Nullable String getUrl(String language) {
if (url == null) {
return null;
} else {