Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndyScherzinger <info@andy-scherzinger.de>2018-05-25 11:26:32 +0300
committerAndyScherzinger <info@andy-scherzinger.de>2018-09-25 18:42:44 +0300
commit4b76dcbbdf7e302ef104e5669be03dd03d2e13c9 (patch)
tree3c38bf1c9e970a449ba11d63a7c2aa2f6d982f4b
parentb6d7b12296735b4d9ed4a7745d00b3335afd29ec (diff)
fix unit testzeroImages
-rw-r--r--test_client/src/main/java/com/owncloud/android/lib/testclient/TestActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/test_client/src/main/java/com/owncloud/android/lib/testclient/TestActivity.java b/test_client/src/main/java/com/owncloud/android/lib/testclient/TestActivity.java
index 0db227e7..276c7f8f 100644
--- a/test_client/src/main/java/com/owncloud/android/lib/testclient/TestActivity.java
+++ b/test_client/src/main/java/com/owncloud/android/lib/testclient/TestActivity.java
@@ -267,10 +267,11 @@ public class TestActivity extends Activity {
String fileLastModifTimestamp = getFileLastModifTimeStamp(storagePath);
UploadRemoteFileOperation uploadOperation;
+ long fileSize = (new File(storagePath)).length();
- if ((new File(storagePath)).length() > ChunkedUploadRemoteFileOperation.CHUNK_SIZE) {
+ if (fileSize > ChunkedUploadRemoteFileOperation.CHUNK_SIZE) {
uploadOperation = new ChunkedUploadRemoteFileOperation(
- context, storagePath, remotePath, mimeType, requiredEtag, fileLastModifTimestamp
+ context, storagePath, remotePath, mimeType, requiredEtag, fileLastModifTimestamp, fileSize
);
} else {
uploadOperation = new UploadRemoteFileOperation(