Browse Source

Changes from comments in PR#967, Second part

masensio 10 years ago
parent
commit
8debbb5f90
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/com/owncloud/android/utils/CopyTmpFileAsyncTask.java

+ 2 - 4
src/com/owncloud/android/utils/CopyTmpFileAsyncTask.java

@@ -19,13 +19,11 @@
  */
 package com.owncloud.android.utils;
 
-import android.app.Activity;
 import android.content.ContentResolver;
 import android.net.Uri;
 import android.os.AsyncTask;
 
 import com.owncloud.android.lib.common.utils.Log_OC;
-import com.owncloud.android.ui.activity.FileActivity;
 
 import java.io.File;
 import java.io.FileOutputStream;
@@ -45,8 +43,8 @@ public class CopyTmpFileAsyncTask  extends AsyncTask<Object, Void, String> {
         return mIndex;
     }
 
-    public CopyTmpFileAsyncTask(Activity activity) {
-        mListener = new WeakReference<OnCopyTmpFileTaskListener>((OnCopyTmpFileTaskListener)activity);
+    public CopyTmpFileAsyncTask(OnCopyTmpFileTaskListener listener) {
+        mListener = new WeakReference<OnCopyTmpFileTaskListener>(listener);
     }
 
     /**