Allow instant upload of new videos although not using Wi-Fi, with the same policy...
authorDavid A. Velasco <dvelasco@solidgear.es>
Wed, 16 Apr 2014 17:30:01 +0000 (19:30 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Wed, 16 Apr 2014 17:30:01 +0000 (19:30 +0200)
src/com/owncloud/android/files/InstantUploadBroadcastReceiver.java

index b0a361a..627aec8 100644 (file)
@@ -118,10 +118,6 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
             Log_OC.w(TAG, "New photo received");
         }
         else if (intent.getAction().equals(NEW_VIDEO_ACTION)) {
             Log_OC.w(TAG, "New photo received");
         }
         else if (intent.getAction().equals(NEW_VIDEO_ACTION)) {
-            if (!isConnectedViaWiFi(context)) {
-                Log_OC.e(TAG, "No Wifi available .. Video instant upload only possible if WiFi is on");
-                return;
-            }
             String[] CONTENT_PROJECTION = { Video.Media.DATA, Video.Media.DISPLAY_NAME, Video.Media.MIME_TYPE, Video.Media.SIZE };
             c = context.getContentResolver().query(intent.getData(), CONTENT_PROJECTION, null, null, null);
             if (!c.moveToFirst()) {
             String[] CONTENT_PROJECTION = { Video.Media.DATA, Video.Media.DISPLAY_NAME, Video.Media.MIME_TYPE, Video.Media.SIZE };
             c = context.getContentResolver().query(intent.getData(), CONTENT_PROJECTION, null, null, null);
             if (!c.moveToFirst()) {