瀏覽代碼

Rename Uploader activity to ReceiveExternalFilesActivity

jabarros 9 年之前
父節點
當前提交
5948c1c387

+ 1 - 1
AndroidManifest.xml

@@ -71,7 +71,7 @@
             </intent-filter>
         </activity>
         <activity android:name=".ui.activity.UploadFilesActivity" />
-        <activity android:name=".ui.activity.Uploader"
+        <activity android:name=".ui.activity.ReceiveExternalFilesActivity"
                   android:taskAffinity=""
                   android:excludeFromRecents="true">
             <intent-filter>

+ 2 - 2
src/com/owncloud/android/ui/activity/Uploader.java → src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java

@@ -90,11 +90,11 @@ import java.util.Vector;
 /**
  * This can be used to upload things to an ownCloud instance.
  */
-public class Uploader extends FileActivity
+public class ReceiveExternalFilesActivity extends FileActivity
         implements OnItemClickListener, android.view.View.OnClickListener,
     CopyAndUploadContentUrisTask.OnCopyTmpFilesTaskListener {
 
-    private static final String TAG = Uploader.class.getSimpleName();
+    private static final String TAG = ReceiveExternalFilesActivity.class.getSimpleName();
 
     private static final String FTAG_TASK_RETAINER_FRAGMENT = "TASK_RETAINER_FRAGMENT";
 

+ 2 - 2
src/com/owncloud/android/ui/asynctasks/CopyAndUploadContentUrisTask.java

@@ -66,7 +66,7 @@ public class CopyAndUploadContentUrisTask extends AsyncTask<Object, Void, Result
      * But we really, really, really want that the files are copied to temporary files in the OC folder and then
      * uploaded, even if the user gets bored of waiting while the copy finishes. And we can't forward the job to
      * another {@link Context}, because if any of the content:// URIs is constrained by a TEMPORARY READ PERMISSION,
-     * trying to open it will fail with a {@link SecurityException} after the user leaves the Uploader Activity. We
+     * trying to open it will fail with a {@link SecurityException} after the user leaves the ReceiveExternalFilesActivity Activity. We
      * really tried it.
      *
      * So we are doomed to leak here for the best interest of the user. Please, don't do similar in other places.
@@ -238,7 +238,7 @@ public class CopyAndUploadContentUrisTask extends AsyncTask<Object, Void, Result
             listener.onTmpFilesCopied(result);
 
         } else {
-            Log_OC.i(TAG, "User left Uploader activity before the temporal copies were finished ");
+            Log_OC.i(TAG, "User left ReceiveExternalFilesActivity activity before the temporal copies were finished ");
             if (result != ResultCode.OK) {
                 // if the user left the app, report background error in a Toast
                 int messageId;