mirror of
https://github.com/nextcloud/android.git
synced 2024-12-20 16:02:01 +03:00
-same for videos
This commit is contained in:
parent
fa99fbe2d9
commit
c4af121ce4
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue