Browse Source

Merge 85170d238919bd34f0673970f4e5fb6e9a485ec0 into 93bc0b4050d5d729642399430ae8c50fe2fe27d3

Tobias Kaminsky 6 years ago
parent
commit
b2301cb040

+ 1 - 1
src/main/java/com/owncloud/android/jobs/FilesSyncJob.java

@@ -80,7 +80,7 @@ public class FilesSyncJob extends Job {
             PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
             wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, MainApp.getAuthority() +
                     WAKELOCK_TAG_SEPARATION + TAG);
-            wakeLock.acquire();
+            wakeLock.acquire(10 * 60 * 1000);
         }
 
         PersistableBundleCompat bundle = params.getExtras();

+ 1 - 1
src/main/java/com/owncloud/android/jobs/OfflineSyncJob.java

@@ -72,7 +72,7 @@ public class OfflineSyncJob extends Job {
                 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
                 wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, MainApp.getAuthority() +
                         WAKELOCK_TAG_SEPARATION + TAG);
-                wakeLock.acquire();
+                wakeLock.acquire(10 * 60 * 1000);
             }
 
             Cursor cursorOnKeptInSync = context.getContentResolver().query(