8080import com .owncloud .android .lib .common .operations .RemoteOperation ;
8181import com .owncloud .android .lib .common .operations .RemoteOperationResult ;
8282import com .owncloud .android .lib .resources .files .FileUtils ;
83- import com .owncloud .android .lib .resources .files .ReadRemoteFolderOperation ;
84- import com .owncloud .android .lib .resources .files .UploadRemoteFileOperation ;
83+ import com .owncloud .android .lib .resources .files .ReadFileRemoteOperation ;
84+ import com .owncloud .android .lib .resources .files .UploadFileRemoteOperation ;
8585import com .pinterest .android .pdk .PDKCallback ;
8686import com .pinterest .android .pdk .PDKClient ;
8787import com .pinterest .android .pdk .PDKException ;
@@ -1362,8 +1362,8 @@ void shareToNextCloudAndOwnCloud(String str) {
13621362 Long timeStampLong = fileToUpload .lastModified () / 1000 ;
13631363 String timeStamp = timeStampLong .toString ();
13641364
1365- UploadRemoteFileOperation uploadOperation =
1366- new UploadRemoteFileOperation (
1365+ UploadFileRemoteOperation uploadOperation =
1366+ new UploadFileRemoteOperation (
13671367 fileToUpload .getAbsolutePath (), remotePath , mimeType , timeStamp );
13681368 uploadOperation .execute (mClient , this , mHandler );
13691369 phimpmeProgressBarHandler .show ();
@@ -1380,6 +1380,7 @@ void shareToNextCloudAndOwnCloud(String str) {
13801380
13811381 @ Override
13821382 protected void onActivityResult (int requestCode , int responseCode , Intent data ) {
1383+ super .onActivityResult (requestCode , responseCode , data );
13831384 if (requestCode == REQ_SELECT_PHOTO ) {
13841385 if (responseCode == RESULT_OK ) {
13851386 NotificationHandler .actionPassed (R .string .upload_complete );
@@ -1423,8 +1424,8 @@ public void onResume() {
14231424 }
14241425
14251426 private void startRefresh () {
1426- ReadRemoteFolderOperation refreshOperation =
1427- new ReadRemoteFolderOperation (FileUtils .PATH_SEPARATOR );
1427+ ReadFileRemoteOperation refreshOperation =
1428+ new ReadFileRemoteOperation (FileUtils .PATH_SEPARATOR );
14281429 refreshOperation .execute (mClient , this , mHandler );
14291430 }
14301431
@@ -1452,7 +1453,7 @@ public void onClick(View v) {
14521453 SnackBarHandler .create (
14531454 parent , getString (R .string .todo_operation_finished_in_success ), Snackbar .LENGTH_LONG )
14541455 .show ();
1455- } else if (operation instanceof UploadRemoteFileOperation ) {
1456+ } else if (operation instanceof UploadFileRemoteOperation ) {
14561457 onSuccessfulUpload ();
14571458 }
14581459 }
0 commit comments