Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
import com.owncloud.android.lib.common.operations.RemoteOperation;
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
import com.owncloud.android.lib.resources.files.FileUtils;
import com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation;
import com.owncloud.android.lib.resources.files.UploadRemoteFileOperation;
import com.owncloud.android.lib.resources.files.ReadFileRemoteOperation;
import com.owncloud.android.lib.resources.files.UploadFileRemoteOperation;
import com.pinterest.android.pdk.PDKCallback;
import com.pinterest.android.pdk.PDKClient;
import com.pinterest.android.pdk.PDKException;
Expand Down Expand Up @@ -1362,8 +1362,8 @@ void shareToNextCloudAndOwnCloud(String str) {
Long timeStampLong = fileToUpload.lastModified() / 1000;
String timeStamp = timeStampLong.toString();

UploadRemoteFileOperation uploadOperation =
new UploadRemoteFileOperation(
UploadFileRemoteOperation uploadOperation =
new UploadFileRemoteOperation(
fileToUpload.getAbsolutePath(), remotePath, mimeType, timeStamp);
uploadOperation.execute(mClient, this, mHandler);
phimpmeProgressBarHandler.show();
Expand All @@ -1380,6 +1380,7 @@ void shareToNextCloudAndOwnCloud(String str) {

@Override
protected void onActivityResult(int requestCode, int responseCode, Intent data) {
super.onActivityResult(requestCode, responseCode, data);
if (requestCode == REQ_SELECT_PHOTO) {
if (responseCode == RESULT_OK) {
NotificationHandler.actionPassed(R.string.upload_complete);
Expand Down Expand Up @@ -1423,8 +1424,8 @@ public void onResume() {
}

private void startRefresh() {
ReadRemoteFolderOperation refreshOperation =
new ReadRemoteFolderOperation(FileUtils.PATH_SEPARATOR);
ReadFileRemoteOperation refreshOperation =
new ReadFileRemoteOperation(FileUtils.PATH_SEPARATOR);
refreshOperation.execute(mClient, this, mHandler);
}

Expand Down Expand Up @@ -1452,7 +1453,7 @@ public void onClick(View v) {
SnackBarHandler.create(
parent, getString(R.string.todo_operation_finished_in_success), Snackbar.LENGTH_LONG)
.show();
} else if (operation instanceof UploadRemoteFileOperation) {
} else if (operation instanceof UploadFileRemoteOperation) {
onSuccessfulUpload();
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ ext {
twitterVersion = "3.0.0"
stethoVersion = "1.5.0"
showcaseVersion = "5.4.3"
nextCloudVersion = "1.0.21"
nextCloudVersion = "1.5.0"
}