projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Workaround to show hidden accents in options menu
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
files
/
services
/
InstantUploadService.java
diff --git
a/src/com/owncloud/android/files/services/InstantUploadService.java
b/src/com/owncloud/android/files/services/InstantUploadService.java
index
8743069
..
e7d28ff
100644
(file)
--- a/
src/com/owncloud/android/files/services/InstantUploadService.java
+++ b/
src/com/owncloud/android/files/services/InstantUploadService.java
@@
-22,7
+22,7
@@
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.LinkedList;
import java.util.List;
-import com.owncloud.android.
utils
.OwnCloudClientUtils;
+import com.owncloud.android.
network
.OwnCloudClientUtils;
import eu.alefzero.webdav.WebdavClient;
import eu.alefzero.webdav.WebdavClient;
@@
-128,7
+128,11
@@
public class InstantUploadService extends Service {
WebdavClient wdc = OwnCloudClientUtils.createOwnCloudClient(account, getApplicationContext());
wdc.createDirectory(INSTANT_UPLOAD_DIR); // fail could just mean that it already exists; put will be tried anyway
WebdavClient wdc = OwnCloudClientUtils.createOwnCloudClient(account, getApplicationContext());
wdc.createDirectory(INSTANT_UPLOAD_DIR); // fail could just mean that it already exists; put will be tried anyway
- wdc.putFile(filepath, INSTANT_UPLOAD_DIR + "/" + filename, mimetype);
+ try {
+ wdc.putFile(filepath, INSTANT_UPLOAD_DIR + "/" + filename, mimetype);
+ } catch (Exception e) {
+ // nothing to do; this service is deprecated, indeed
+ }
}
}
}
}
}
}