projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed: Rotating screen after viewing a file would return you to the
[pub/Android/ownCloud.git]
/
src
/
eu
/
alefzero
/
webdav
/
WebdavClient.java
diff --git
a/src/eu/alefzero/webdav/WebdavClient.java
b/src/eu/alefzero/webdav/WebdavClient.java
index
66f27e4
..
f7cc060
100644
(file)
--- a/
src/eu/alefzero/webdav/WebdavClient.java
+++ b/
src/eu/alefzero/webdav/WebdavClient.java
@@
-75,6
+75,12
@@
public class WebdavClient extends HttpClient {
public boolean downloadFile(String filepath, File targetPath) {
\r
// HttpGet get = new HttpGet(mUri.toString() + filepath.replace(" ",
\r
// "%20"));
\r
public boolean downloadFile(String filepath, File targetPath) {
\r
// HttpGet get = new HttpGet(mUri.toString() + filepath.replace(" ",
\r
// "%20"));
\r
+ String[] splitted_filepath = filepath.split("/");
\r
+ filepath = "";
\r
+ for (String s : splitted_filepath) {
\r
+ if (s.equals("")) continue;
\r
+ filepath += "/" + URLEncoder.encode(s);
\r
+ }
\r
\r
Log.e("ASD", mUri.toString() + filepath.replace(" ", "%20") + "");
\r
GetMethod get = new GetMethod(mUri.toString()
\r
\r
Log.e("ASD", mUri.toString() + filepath.replace(" ", "%20") + "");
\r
GetMethod get = new GetMethod(mUri.toString()
\r