Commit dda9730b authored by narinder Rana's avatar narinder Rana
Browse files

remove file list item when upload done

parent cf3c3b4e
Pipeline #137689 passed with stage
in 1 minute and 31 seconds
......@@ -24,7 +24,9 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult.ResultCo
import java.io.File;
import java.util.ArrayList;
import foundation.e.drive.database.DbHelper;
import foundation.e.drive.models.FileObserver;
import foundation.e.drive.models.SyncedFileState;
import foundation.e.drive.services.FileObserverService;
import foundation.e.drive.services.InitializerService;
import foundation.e.drive.utils.CommonUtils;
......@@ -138,7 +140,7 @@ public class UploadFileOperation extends RemoteOperation implements ComparableOp
//if upload is a success
if( uploadResult.isSuccess() ){
// InitializerService.files.remove(file);
FileObserverService.files.remove(file);
Object data = uploadResult.getSingleData();
if(data != null){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment