Fixes #417: Open mobile view of Commons

This commit is contained in:
maskara 2017-03-10 10:23:44 +05:30
parent 46a1f3c46e
commit 22cbd41f49
3 changed files with 6 additions and 1 deletions

View file

@ -61,6 +61,10 @@ public class Media implements Parcelable {
return CommonsApplication.HOME_URL + "File:" + Utils.urlEncode(getFilename().replace("File:", "").replace(" ", "_"));
}
public String getMobileDescriptionUrl() {
return CommonsApplication.MOBILE_HOME_URL + "File:" + Utils.urlEncode(getFilename().replace("File:", "").replace(" ", "_"));
}
public Uri getLocalUri() {
return localUri;
}