-same for videos

This commit is contained in:
tobiasKaminsky 2014-11-22 13:48:59 +01:00
parent fa99fbe2d9
commit c4af121ce4

View file

@ -158,7 +158,9 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
c.close();
Log_OC.d(TAG, file_path + "");
if (!isOnline(context) || (instantVideoUploadViaWiFiOnly(context) && !isConnectedViaWiFi(context))) {
if (!isOnline(context)
|| (instantVideoUploadViaWiFiOnly(context) && !isConnectedViaWiFi(context))
|| (instantUploadWhenChargingOnly(context) && !isCharging(context))) {
return;
}
@ -221,7 +223,6 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
c.close();
db.close();
}
}
public static boolean isOnline(Context context) {