mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Make license in MediaDetail clickable
This commit is contained in:
parent
0a6e8b0cc8
commit
1044fe13ae
2 changed files with 32 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue