mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
With option for associating image with wikipedia article (#3783)
This commit is contained in:
parent
a4379fde02
commit
e4190f3f7d
28 changed files with 979 additions and 479 deletions
|
|
@ -138,6 +138,15 @@ public class WikiSite implements Parcelable {
|
|||
return authorityToMobile(authority());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get wiki's mobile URL
|
||||
* Eg. https://en.m.wikipedia.org
|
||||
* @return
|
||||
*/
|
||||
public String mobileUrl() {
|
||||
return String.format("%1$s://%2$s", scheme(), mobileAuthority());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The canonical "desktop" form of the authority. For example, if the authority
|
||||
* is in a "mobile" form, e.g. en.m.wikipedia.org, this will become en.wikipedia.org.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue