mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 22:25:44 +03:00
OC-208: Changes from comments
This commit is contained in:
parent
883e1b1674
commit
8f64354d72
2 changed files with 10 additions and 5 deletions
3
lint.xml
Normal file
3
lint.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<lint>
|
||||
</lint>
|
|
@ -109,8 +109,6 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
|
|||
|
||||
public static final byte ACTION_CREATE = 0;
|
||||
public static final byte ACTION_UPDATE_TOKEN = 1;
|
||||
|
||||
public static final String WEBDAV_PATH= "/remote.php/webdav";
|
||||
|
||||
private String mHostBaseUrl;
|
||||
private OwnCloudVersion mDiscoveredVersion;
|
||||
|
@ -658,9 +656,13 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
|
|||
|
||||
|
||||
private String trimUrlWebdav(String url){
|
||||
if(url.toLowerCase().endsWith(WEBDAV_PATH)){
|
||||
url = url.substring(0, url.length() - WEBDAV_PATH.length());
|
||||
}
|
||||
if(url.toLowerCase().endsWith(AccountUtils.WEBDAV_PATH_4_0)){
|
||||
url = url.substring(0, url.length() - AccountUtils.WEBDAV_PATH_4_0.length());
|
||||
} else if(url.toLowerCase().endsWith(AccountUtils.WEBDAV_PATH_2_0)){
|
||||
url = url.substring(0, url.length() - AccountUtils.WEBDAV_PATH_2_0.length());
|
||||
} else if (url.toLowerCase().endsWith(AccountUtils.WEBDAV_PATH_1_2)){
|
||||
url = url.substring(0, url.length() - AccountUtils.WEBDAV_PATH_1_2.length());
|
||||
}
|
||||
return (url != null ? url : "");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue