From: David A. Velasco Date: Wed, 16 Apr 2014 17:30:01 +0000 (+0200) Subject: Allow instant upload of new videos although not using Wi-Fi, with the same policy... X-Git-Tag: oc-android-1.7.0_signed~332^2~6 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/e8d969f03282ff8fb1bcad8130e5e55b825d8805?hp=-c Allow instant upload of new videos although not using Wi-Fi, with the same policy as pictures --- e8d969f03282ff8fb1bcad8130e5e55b825d8805 diff --git a/src/com/owncloud/android/files/InstantUploadBroadcastReceiver.java b/src/com/owncloud/android/files/InstantUploadBroadcastReceiver.java index b0a361aa..627aec8c 100644 --- a/src/com/owncloud/android/files/InstantUploadBroadcastReceiver.java +++ b/src/com/owncloud/android/files/InstantUploadBroadcastReceiver.java @@ -118,10 +118,6 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver { 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()) {